OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Problem parsing xml file with DOM using Java



You are passing the parser a UNC file name not an URL as Xerces
is expecting.  

If you did (only approximations),

parser.parse(new File(XMLFile).toURL());

or

parser.parse("file:///c:/pk.xml");

You should be OK.  If you are using backslashes with an XML
parser you are asking for trouble.

Questions specific to a particular implementation
are best asked on the implementations mailing list, in this
case xerces-j-user@xml.apache.org.