In this page we summarize the XML tools we have built in this section using JAXP. All tools but XMLTrans use the error handler ValidHandler; XMLTrans uses the error handler TransHandler:
java SAXValid document.xmlThe DTD must be specificed in the XML document using a DTD declaration.
java DOMValid document.xmlThe DTD must be specificed in the XML document using a DTD declaration.
java XMLValid -s (stream|sax|dom) document.xml [schema.xsd]The schema can be specificed either from command line or in the XML document using a xsi:schemaLocation attribute. Option -s specifies how the XML instance document should be read: as a stream of text (stream), as a stream of events (sax) or as a node tree (dom).
java XMLTrans document.xml stylesheet.xsl
java XPathEval query -r (nodeset|string|number|boolean) document.xmlwhere query is a string with the query and the -r option specifies the query result type. It returns the query result in XML format.