Sax parser setvalidating
It will also most likely put you miles ahead of many of your fellow XML developers. All of these classes sit on top of an existing parser. A lot of the parser/API confusion results from how Sun packages JAXP and the parser that JAXP uses by default.
If you're still dubious, make sure you have the JAXP distribution (see Going bigtime). Navigate to the parsing portion of the API, located in the package. In earlier versions of JAXP, Sun included the JAXP API (with those six classes I just mentioned and a few more used for transformations) package.
The following list summarizes the detailed steps needed to accomplish these tasks.
Java technology and XML are arguably the most important programming developments of the last five years.
This article assumes that you have some basic knowledge of SAX and DOM.
If you're new to XML parsing, you might want to read up on SAX and DOM first through online sources or skim through my book (see Related topics).
Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation.
That said, even advanced developers who use JAXP often have misconceptions about the very API they depend on.
I have seen many requests for a comparison of SAX, DOM, JDOM, and dom4j to JAXP, but making such comparisons is impossible because the first four APIs serve a completely different purpose from JAXP. JAXP provides a means of getting to these parsers and the data that they expose, but doesn't offer a new way to parse an XML document. Even JDOM and dom4j (see Related topics), like JAXP, sit on top of other parsing APIs.
Understanding this distinction is critical if you're going to use JAXP correctly. Although both APIs provide a different model for accessing data from SAX or DOM, they use SAX internally (with some tricks and modifications) to get at the data they present to the user.
You don't need to be fluent in callbacks or DOM s, but you should at least understand that SAX and DOM are parsing APIs.
It would also help to have a basic understanding of their differences.