This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes XML parsing on Tomcat 5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "XML parsing on Tomcat 5" Watch "XML parsing on Tomcat 5" New topic
Author

XML parsing on Tomcat 5

Sheng Gu
Greenhorn

Joined: Sep 27, 2005
Posts: 12
Hi all,

We have a headache issue. We have a VB application on Windows, the application needs to transfer a xml data file to servlets on Tomcat 4.0.3 server (Linux system). Currently, we need to update to Tomcat 5. However, when we finished the updating, we found the transfered xml data file that servlets on Tomcat 5 got was incorrect (part of xml file). We could not figure out what was wrong with the updating to Tomcat 5. Any body can give us a help? We very appreciate. Thank you in advance.

Sheng
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
Is the Tomcat servlet just receiving the file as text or is it parsing the input stream as XML on the fly?
If there is a parsing error you should be getting some sort of informative exception.
Bill
Sheng Gu
Greenhorn

Joined: Sep 27, 2005
Posts: 12
Hi Bill,

Thank you very much for your response. The Tomcat servlets will parse the imputted XML stream and extract its data. However, it seems the servlets cannot correctly parse the imputted XML data. From searching from internet, it seems Tomcat 5 and Tomcat 4 use diffirent parse lib. Is it correct?

Sheng
 
Don't get me started about those stupid light bulbs.
 
subject: XML parsing on Tomcat 5
 
Similar Threads
setting Tomcat 6 up to run CGI scripts (Perl)
New to servlets - a few random easy questions
Configure Tomcat & Mysql
Web services, need help on 2 things
web.xml tags urgent help please