help needed- newbie trying to setup xerces XML pasrer
Hello all,
I am new to Java and XML.
I am trying to write a simple java program that will use the xerces parser and will read the XML file.
I have installed xerces 2.8.0 and put in on a specific location on my hard drive.
I also added the xercesImpl.jar file to the CLASSPATH variable.
I am trying to compile this code:
import org.xml.sax.XMLReader;
public class SAXParserDemo {
/
public void performDemo(String uri) {
System.out.println("Parsing XML File: " + uri + "\n\n");
// Instantiate a parser
XMLReader parser = new SAXParser();
}
public static void main(String[] args)
{
if (args.length != 1)
{
System.out.println("Usage: java SAXParserDemo [XML URI]");
System.exit(0);
}//IF
String uri = args[0];
SAXParserDemo parserDemo = new SAXParserDemo();
parserDemo.performDemo(uri);
}//MAIN
}
The error I get is on this line : XMLReader parser = new SAXParser(); stating that it cannot find SAXParser.
What am I doing wrong? is there something else I need to import?
Help will be much appreciated.
Sorry for the newbie question.
Cheers,
Mike

