Esteban Kemp wrote:
try{
XMLReader parser = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
}
catch (SAXException e){
System.out.println(e.getMessage());
}
Your code doesn't seem to parse anything -- it just
creates a parser instance. But I'm supposing that
you will be adding that code once you get past your
initial problem running the program, right?

java SAXPArserDemo content.xml

SAX2 driver class org.apache.xerces.parsers.SAXParser not Found...
Is this your exact command-line? If so, then I would
say that your classpath doesn't state where to find
the Xerces classes. Do this instead: (on one line)

  java -cp .;xercesImpl.jar;xmlParserAPIs.jar
       SAXParserDemo
       content.xml

--
Andy Clark * [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to