J
Jack Andersson
I'm trying to parse a xml dtd with the following code. With the XMLParser
it works fine, but with the DOMParser the parser throws an exception saying
"Illegal change of encoding: from UCS-2 to Unicode." The dtd-file is in
unicode.
Why is this?
oracle.xml.parser.v2.DOMParser domParser = new DOMParser();
oracle.xml.parser.XMLParser xmlParser = new XMLParser();
xmlParser.parseDTD(fileToURL(dtdFile), rootName);
domParser parseDTD(fileToURL(dtdFile), rootName);
it works fine, but with the DOMParser the parser throws an exception saying
"Illegal change of encoding: from UCS-2 to Unicode." The dtd-file is in
unicode.
Why is this?
oracle.xml.parser.v2.DOMParser domParser = new DOMParser();
oracle.xml.parser.XMLParser xmlParser = new XMLParser();
xmlParser.parseDTD(fileToURL(dtdFile), rootName);
domParser parseDTD(fileToURL(dtdFile), rootName);