This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes XML java api guide Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML java api guide" Watch "XML java api guide" New topic

XML java api guide

Mark Lybarger
Ranch Hand

Joined: Dec 19, 2003
Posts: 72
i'm looking for a quicking breakdown of the java xml api's. specifically sax, xerces, xalan, xml-apis, jdom, etc.
i have an application that's using an xml document, and uses jdom to access it. the xml that we recieve doesn't include a dtd specification, and we add one into the document (direct manipulation of the string). the problem is that the dtd _may_ not always exist at the location we're putting in (we're considering moving from a exploded web app deployment to a ear deployment)
this is what i'm using to get the jdom (i think) representation of the xml document.
SAXBuilder builder = new SAXBuilder( xmlImpl );
builder.setValidation( validate );
return( new InputSource( new StringReader( xml ) ) ) );
where xmlImpl=org.apache.xerces.parsers.SAXParser
and validate=false
i'd like to not have to use a dtd within the xml document, so if it's avoidable, that would be excellent. currently the parser seems to not like it if the stated dtd isn't where we've said it's going to be.
I agree. Here's the link:
subject: XML java api guide
It's not a secret anymore!