What exactly do I have to download for XML parsing?

Dear All,

I am totally new to XML, and I am totally confused on what exactly I have to download and ended up downloading all that I could find.

So I hav no idea which one I have to use, an article I was reading suggested I download the XML library from Sun and the links led me to a page with two downloads :

The JavaTM Architecture for XML Binding (JAXB) 1.0 Early Access has been released.

The JavaTMAPI for XML Processing (JAXP) 1.1 has been released.

which one do I need?

Many Thanks

KT

[555 byte] By [auwy29] at [2007-9-26 4:23:05]
# 1

For the question

Go here http://java.sun.com/xml/download.html#prodspec and download both the reference implementation and the specifications.

Do make it a point to read the specifications before indulging in coding. If not thoroughly, atleast breifly. Otherwise you may get tempted to come back to this forum every now and then instead of spending valuable time writing valuable programs.

And, just a clarification, but I am not trying to dicourage you from using this and other Java forums.

neville_sequeira at 2007-6-29 17:28:53 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

Since you're interested in parsing you should get JAXP. JAXB you can take a look at later when you're more familiar with parsers and JAXP. One of the most widely used parsers is Xerces which you can get at http://xml.apache.org - that contains JAXP as well as samples and documentation which should get you started. For a quick start tutorial take a look at: http://ecerami.com/xerces/

Some sites with information and further links into the XML world:

http://www.xml.com/

http://wdvl.com/Software/XML/

http://www.xmlsoftware.com/

In case you want to pick up a good book:

http://www.ibiblio.org/xml/books/bible2/

Good luck.

lk555 at 2007-6-29 17:28:53 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3

> Java Architecture for XML Binding (JAXB)

> Java API for XML Processing (JAXP)

> which one do I need?

Altough someone new to XML should maybe learn about DOM (thus JAXP): there is an easier way to process XML in Java, although less standard (as only supported in Java, not in C++, etc.): JDOM. Here, the DOM in JDOM is NOT the well-known Document Object Model. Note that JDOM still uses JAXP and a SAX parser to load XML -- a few lines of standard code...

JDOM: http://jdom.org

Get Beta 7 at http://jdom.org/dist/binary -- jdom.jar includes all required stuff.

Java World articles by the main designers: http://www.javaworld.com/javaworld/jw-05-2000/jw-0518-jdom_p.html and http://www.javaworld.com/javaworld/jw-07-2000/jw-0728-jdom2_p.html

More introductionaly text with easy-to-read examples and a lot of other links at http://www.ibm.com/developerworks/java/library/j-jdom/

About JDOM getting to be integrated into Java itself:

http://jcp.org/jsr/detail/102.jsp

http://java.sun.com/aboutJava/communityprocess/jsr/jsr_102_jdom.html

Goodluck

a.

avbentem at 2007-6-29 17:28:53 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4
As avbentem, I'd recommend going straight to using JDOM. I got going very quickly with this.You will still need to download and install jaxp though.The links to the 2 javaworld docs are v good.
thebobster at 2007-6-29 17:28:53 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 5

Before you do any of this, I recommend using IBM's tutorial. It will get you started within

45 minutes. A word of caution though: it tells you to download an obsolete version of

a binary file from http://xml.apache.org/dist/xerces-j/ All you have to do is download the latest version, and you're on your way.

http://www-105.ibm.com/developerworks/education.nsf/xml-onlinecourse-bytitle/DC1BA2350F8A7BAF86256C6A0046BD72?OpenDocument

padaek at 2007-6-29 17:28:53 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...