can any one give me the code and tell me the process how to validate and parse(print to console) an xml document using sax parser using javax.xml package.
Use setValidating(true) in SAXParserFactory for making it a validating parser and using the setProperty method of the parser you have to give the location of the .xsd file.
There is a SAX parser example in Sun's XML tutorial at http://java.sun.com/webservices/jaxp/dist/1.1/docs/tutorial/sax/index.html which should help get you started. It demonstrates the basics of implementing a org.xml.sax.ContentHandler to capture and display XML data as it is encountered by the SAX parser. Hope this helps. Warren
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.