I have just started learning XML and have the following queries:- 1) I have learnt how to run Xerces from the DOS command line by typing: java sax.SAXCount file.xml which seems to check for well-formedness but does not seem to check for validity. Is this correct? More importantly though, I have tried to search for a list of Xerces commands to use at the DOS command line to no avail. 2) I did read on one web-page to use the following for validation parsing: java sax.SAXCount -v file.xml but again I'm not sure if it correct. 3) Does anyone know where I can get a full list of commands? 4) When you download Xalan, it includes Xerces (does it?) Is there are list of commands for Xalan and Xerces which are similar in function to using Microsofts MSXSL 5) Also can someone tell me if there are any good books are websites covering the specific usage of Xalan and Xerces Thanks
Originally posted by suheel hussain: Con, How do I get started with Xerces? I am having a hard time looking for XML parser class in Xerces. Which class do I instantiate to get Xerces XML parser? I would appreciate your help.
Some thing like this import org.apache.xerces.*; import javax.xml.parsers.SAXParser; .... . . org.apache.xerces.jaxp.SAXParserFactoryImpl factory = new org.apache.xerces.jaxp.SAXParserFactoryImpl(); //set namespace,schema propeerties here SAXParser saxParser = factory.newSAXParser(); And may be this tutorial will help you, understanding DOm and understanding sax