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 XML and Related Technologies and the fly likes parsing using Xerces 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 » Engineering » XML and Related Technologies
Bookmark "parsing using Xerces" Watch "parsing using Xerces" New topic
Author

parsing using Xerces

Sri Sar
Ranch Hand

Joined: Mar 25, 2004
Posts: 44
hi,
i need ur help regarding Xerces parser.
i have an XML file given below:
<selection>
<ele id="1">C:\My Documents\abc.jpg</ele>
<ele id="1">C:\My Documents\abc.jpg</ele>
<data id="1">C:\My Documents\dat1.txt</data>
<data id="2">C:\My Documents\dat2.txt</data>
</selection>

now using a HTML form, the user selects "abc.jpg" and "dat1.txt"
now i want to modify this XML file so that a new XML file is generated
that contains only these two files that the user has selected.
in one of the forums here, someone suggested to me to use Xerces for parsing. i am really finding it difficult to proceed. can u give me some sort of pseudo-code (in Xerces) that will help me to get started.
i tried searching the web but was futile. thanks in advance
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: parsing using Xerces
 
Similar Threads
how to use servlets/JSP/EJB ???
is the DOM representation right???
representing as XML
writing contents to a text area or hidden field
extracting data from XML file using servlets