[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] JAXP and XERCES
Could someone please provide me with instructions for using the JAXP Package and either the XML4J or Xerces validating SAX parser (either one is fine)? I have reviewed the sun tutorials and looked all over the apache and ibm sites, but can't find explicit code. If there is explicity code for that example already, I'd love a link to that page. My code is below. I also have the System Variable javax.xml.parsers.SAXParserFactory set as org.apache.xerces.Parser and org.apache.... is in my Classpath. What am i doing wrong? Parser parser; SAXParserFactory spf = SAXParserFactory.newInstance (); spf.setValidating(true); SAXParser sp = spf.newSAXParser (); parser = sp.getParser (); //set the document handler parser.setDocumentHandler (vh); // Set the new error handler parser.setErrorHandler (eh); // Parse the input parser.parse (input); Thanks, Laura --------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-dev-unsubscribe@x... For additional commands, e-mail: xerces-j-dev-help@x... *************************************************************************** This is xml-dev, the mailing list for XML developers. To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev List archives are available at http://xml.org/archives/xml-dev/ ***************************************************************************
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|