• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

error executing ...

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the general XML topic.
Kyle
 
This guy is skipping without a rope. At least, that's what this tiny ad said:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic