I
iherage
I have this java applet parse the xml file
the xml is online:
like https://localhost:800/.../filename.xml
The part of the code is
try {
SAXParserFactory sf = SAXParserFactory.newInstance();
SAXParser sp = sf.newSAXParser();
XMLReader xmlReader = sp.getXMLReader();
xmlReader.setContentHandler(this);
InputSource source = new InputSource(fileName);
xmlReader.parse(source);
} catch (Exception e) {
e.printStackTrace();
}
it works well when the xml file is on my computer, but i cannot have
to it work for the online xml(on the server).
The error message is
java.io.FileNotFoundException: https:/localhost:800/.../filename.xml
(No such file or directory)
Does anyone know how to solve this? thanks!
the xml is online:
like https://localhost:800/.../filename.xml
The part of the code is
try {
SAXParserFactory sf = SAXParserFactory.newInstance();
SAXParser sp = sf.newSAXParser();
XMLReader xmlReader = sp.getXMLReader();
xmlReader.setContentHandler(this);
InputSource source = new InputSource(fileName);
xmlReader.parse(source);
} catch (Exception e) {
e.printStackTrace();
}
it works well when the xml file is on my computer, but i cannot have
to it work for the online xml(on the server).
The error message is
java.io.FileNotFoundException: https:/localhost:800/.../filename.xml
(No such file or directory)
Does anyone know how to solve this? thanks!