JAXP supports Object-based and Event-based parsing. In Object-based, only W3C DOM parsing is supported so far.Maybe in future versions of JAXP, the EG might decide to support J-DOM as well. Another Event-based parsing called Pull Parsing, should have been made part of JAXP.For example: XMLSchema is yet another grammar for XML documents, and has gained huge popularity because of the XML syntax it uses, and the richness it provides to define fine grained validation constraints.If an XML instance document points to XMLSchema using the "schema Location" and "no Namespace Schema Location" hints, then to turn on validation against XMLSchema, you need to do the following things: Note that, in this case, even if a DOCTYPE exists in the XML instance, the instance won't be validated against DTD.
Sun Microsystems Inc., at that time had just formalized the Java Community Process (JCP), and the first version of JAXP (JSR-05) was made public in early 2000, supported by industry majors like (in chronological order) BEA Systems, Fujitsu Limited, Hewlett-Packard, IBM, Netscape Communications, Oracle, and Sun Microsystems, Inc.
If the DOM parser is W3C compliant, then, the DOM created is a W3C DOM, which can be traversed or modified using the org.w3APIs.
Most of the DOM parsers also allow you to create an in-memory DOM structure from scratch, rather than just parsing an XML to a DOM.
To transform an XML document using JAXP, you need to create a Transformer using the stylesheet.
Once a Transformer is created, it takes the XML input to be transformed as a JAXP Source, and returns the transformed result as a JAXP Result.