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?
> I'm currently using ZipFile to extract an XML file as an InputStream. My
> application that needs the ability to perform the following independent
[quoted text clipped - 7 lines]
> 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?
George - 31 Jan 2006 03:01 GMT
>> I'm currently using ZipFile to extract an XML file as an InputStream.
>> My application that needs the ability to perform the following
[quoted text clipped - 13 lines]
> there anything like DOM (storing the file in memory) but provide
> friendlier ways to extract/modify data?
Check out org.apache.xpath.XPathAPI