Home > Java, JDOM, SAX, XML > Java code to read XML file using JDOM

Java code to read XML file using JDOM

This article specifies a simple Java code to read the data or contents from the xml file using jdom jar.  JDom is a way to represent an xml document for easy to read and write ,JDOM is an light weight for manipulation,Despite the name similarity its not build on DOM or modeled after DOM. It supports reading and writing a Dom document, SAX events and reduce the complexity to read an xml document.

Read the rest of this entry…

Categories: Java, JDOM, SAX, XML Tags: , ,
  1. Dinuka
    December 18, 2009 at 6:20 pm | #1

    Hi,

    Nice article. Maybe you already know this, but wouldnt it be better to use AXIOM as its a pull parser rather than a push parser like JDOM. Again very nice tutorial and thx for sharing

  2. Brakebein
    December 18, 2009 at 7:09 pm | #2

    For simple parsing, I would suggest SAX/StAX, as they both are a lot faster

  3. cary
    March 17, 2010 at 1:43 am | #3

    thank you.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.