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 How to parse xml 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 "How to parse xml" Watch "How to parse xml" New topic
Author

How to parse xml

Dorothy Taylor
Ranch Hand

Joined: Nov 26, 2007
Posts: 104
Hi

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

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