Hi,
I am new to XML and was trying to run my 1st program.
This is my code
import java.io.*;
import org.xml.sax.*;
import org.apache.xerces.parsers.SAXParser;
public class ParserDemo {
private final
String uri = "c:\\jas\\xml\\test.xml";
public ParserDemo() {
XMLReader parser = new SAXParser();
log("Parser creatd...");
log("parsing: "+uri);
try {
parser.parse(uri);
}
catch(Exception e) {
log("Error :"+e.getMessage());
}
}
public static void main(String arg[]) {
new ParserDemo();
}
public void log(String s) {
System.out.println(s);
}
}
When I try to run this it gives an error
Error : Connection Timedout :Connect.
Can anybody pl explain.
Regards,
Mustang.