Best XML API for reading/updating attribute values?

O

O.B.

I'm currently using ZipFile to extract an XML file as an InputStream.
My application that needs the ability to perform the following
independent operations:

* Parse a nested element's attribute's value from an XML InputStream.

* Modify an existing nested element's attribute's value and store it
back into the jar file.

Using the Xerces2 Java Parser, which XML API (SAX, JDOM, etc) is best
and easiest to use for the operations above?
 
O

O.B.

O.B. said:
I'm currently using ZipFile to extract an XML file as an InputStream. My
application that needs the ability to perform the following independent
operations:

* Parse a nested element's attribute's value from an XML InputStream.

* Modify an existing nested element's attribute's value and store it
back into the jar file.

Using the Xerces2 Java Parser, which XML API (SAX, DOM, etc) is best
and easiest to use for the operations above?

Well, I have written two applications to observe the behaviors and
structures generated by SAX and DOM parsing. I like how DOM parses
files into a document in memory but boy, it is pain to navigate. Is
there anything like DOM (storing the file in memory) but provide
friendlier ways to extract/modify data?
 
G

George

At said:
Well, I have written two applications to observe the behaviors and
structures generated by SAX and DOM parsing. I like how DOM parses
files into a document in memory but boy, it is pain to navigate. Is
there anything like DOM (storing the file in memory) but provide
friendlier ways to extract/modify data?

Check out org.apache.xpath.XPathAPI
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top