Hi, I am having a problem when I try to run Java program which parses a XML file. I am using JAXP for parsing XML file. It compiles it well, but when I try to run I get error: Parsing error: File "C:\...\test.xml" not found. Can anybody tell what is wrong here. Thanks.
Obviously, something is wrong with the way you pass the location of the file to the parser. I prefer to do something like: File f = new File( path, filename ); if( !( f.exists() && f.canRead() ){ System.out.println("Can't read: " + f.getAbsolutePath() ); return; } Bill