aspose file tools*
The moose likes XML and Related Technologies and the fly likes How to parse xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to parse xml" Watch "How to parse xml" New topic

How to parse xml

Dorothy Taylor
Ranch Hand

Joined: Nov 26, 2007
Posts: 104

I have a requirement where i have a valid xml that I need to parse so that the elements of the xml can be made to behave in some manner. I need to know two things:

  • Which parser is best to use DOM, SAX etc.
  • Which parser library can I use. Here please note that my JRE can be 1.4 o 1.6. So my code should be compatible with these versions

  • Note that my xml may not be very big in size. It can have a maximum of 200 elements maybe

    I agree. Here's the link:
    subject: How to parse xml
    Similar Threads
    SAX vs DOM
    Need Help in XML Parsing
    XML Schema parsing
    convert javaobjects to xml and xml to java objects dynamically
    XML file as String