Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

parsing an XML-document-which API is the best?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I want to parse an incoming XML-document from the
network (way: database - xml mapper - network - client)
with a tool or API to get Java code out of it.

1. So far I don´t know exactly which API to use. There
are a few of them like
- JAXP
- JDOM
- DOM4J
....
But which one is the best for this purpose?
Is it better to use event-based SAX-parsing or
the DOM-model that creates a tree (I think it is
easier)?

2. Has anybody heard about a tool named "Quick"
to automate the parsing process of the XML-doc
completely (especially documentation for it)?

I thank you for each tip, example (if you have one) or
source of information (URLs, book tips, articles etc.)

Bernd
 
The choice of XML representation depends on what you are doing. SAX is good if you are working with large documents because document models store the entire document in memory. Generally, a document model is easier to code for. JAXP can be used to invoke SAX and DOM. JDOM and dom4j are more intuitive document models than DOM. dom4j has more features than JDOM.
Download one of the implementations and look at their samples.

Never heard of 'Quick'.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top