[jdom-interest] BOM-Handling depends on JRE?!
Kai Wörner
kai.woerner at uni-hamburg.de
Thu Mar 17 02:46:06 PST 2005
Hi!
Im parsing XML-Files via
SAXBuilder parser = new SAXBuilder();
doc = parser.build(xmlFile);
this code throws me a
org.jdom.input.JDOMParseException: Error on line 1 of document [doc]:
Dokumentwurzelelement fehlt
for XML-documents beginning with a BOM when run through JRE 1.4.2, but not
through 1.5. Documents without BOM work just fine for both JREs. Where could
that behaviour come from? I'm confused!
Thanks,
Kai Wörner
More information about the jdom-interest
mailing list