[izpack-users] Parsing xml file with NanoXML, getting MalformedURLException.
jungu zhan
zhanjungu at yahoo.com
Thu Jul 13 11:47:54 CEST 2006
Hi,
I want to use NanoXML to parse some xml file in my
installation.
The code using Nano is as follows:
/************************************************/
String dSQLFile =
"C:\\IBOSS_NetNumen\\inet\\ums-svr\\deploy\\inet-isl-dscript-sql-file.xml";
try {
parser = XMLParserFactory.createDefaultXMLParser();
IXMLReader reader = StdXMLReader.fileReader(dSQLFile);
parser.setReader(reader);
XMLElement xml = (XMLElement) parser.parse();
} catch
............
/************************************************/
When it goes to
"IXMLReader reader =
StdXMLReader.fileReader(dSQLFile);", I get a
"java.net.MalformedURLException: unknown protocol: c".
if "dSQLFile" is defined as
[String dSQLFile =
"D:\\IBOSS_NetNumen\\inet\\ums-svr\\deploy\\inet-isl-dscript-sql-file.xml";],
then the Exception is "java.net.MalformedURLException:
unknown protocol: d".
It seems StdXMLReader.setSystemID(String systemID)
didn't behave as expected.
I have searched the mailinglist, but didn't find
related content.
Did I miss sth.?
__________________________________________________
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com
More information about the izpack-users
mailing list