File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes servlets and XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlets and XML" Watch "servlets and XML" New topic
Author

servlets and XML

Yell Srik
Ranch Hand

Joined: Mar 10, 2004
Posts: 61
hi,
i have an XML file of the form:
<elt>
<dat>C:\My Documents\values.txt</dat>
<fig>C:\My Documentns\values2.txt</fig>
<elt>
now i want to use a servlet that extracts the values from the text files. can u help me out with the pseudo-code using which i can create a servlet that extracts the data values from the text files?
thanks in advance
Sanju Thakur
Greenhorn

Joined: Sep 16, 2003
Posts: 3
Hi,
If you want a pseudo-code for reading the xml file, the code is available in the Sun's J2EE tutorial. It neatly covers both SAX and DOM.
Regards,
Sanju
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlets and XML
 
Similar Threads
servlet code to interpret window contents
generating XML using servlets/jsp
extracting data from XML file using servlets
how to use servlets/JSP/EJB ???
file path in XML