OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   JAXP and XERCES

[ Lists Home | Date Index | Thread Index ]
  • From: Laura Neitzel <laura.neitzel@moai.com>
  • To: "'xml-dev@xml.org'" <xml-dev@xml.org>
  • Date: Thu, 27 Apr 2000 17:31:40 -0700


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@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org

***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@xml.org&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS