Hi

I'm a little new in XML tecnologies and I hava installed
xerces-2_2_1 and j2sdk1.4.1 in a linux RedHat 7.1 machine I have this code in Java (is short):

import org.xml.sax.XMLReader;
import org.xml.sax.helpers.XMLReaderFactory;
import org.xml.sax.SAXException;

public class SAXParserDemo{

public void performDemo(String uri) {
System.out.println("Parsing XML file: "+ uri +"\n\n" );
try{
XMLReader parser = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
}
catch (SAXException e){
System.out.println(e.getMessage());
}
}


public static void main (String[] args){
if (args.length != 1){
System.out.println("Usage...");
System.exit(0);
}
String uri = args[0];
SAXParserDemo parserDemo = new SAXParserDemo();
parserDemo.performDemo(uri);
}
}

but when I execute de class I get:
java SAXPArserDemo content.xml

SAX2 driver class org.apache.xerces.parsers.SAXParser not Found...

I understend the error, but I dont know how can i fix it....

Thx...


_________________________________________________________________



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

Reply via email to