Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

Best XML API for reading/updating attribute values?

Thread view: 
O.B. - 29 Jan 2006 00:07 GMT
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.B. - 30 Jan 2006 04:54 GMT
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.