This sounds like an issue with your xml file, not xml parser....in
other words, according to xml spec, if no declaration is found in
xml,utf-8 is assumed, vtd-xml is doing what it is supposed to do...
----- Original Message -----
From: "florian kammermann"
Sent:Thu, 16 May 2013 10:19:16 +0200
Subject:[Vtd-xml-users] ParseException / VTDGen / encoding
I have an xml file without xml declaration, that means without
When I parse the document like this I get a ParseException.
It looks like vtd-xml takes utf-8 as encoding, but actually the
encoding is iso-8859-1.
When I add the header then the xml can be parsed successfully.
Sadly in production I have no control over the xml files, they come
Looks also like the xml header is not mandatory:
Is there a way to set the encoding programmatically, when parsing
Wankdorf | Center
CH - 3014 Bern
Tel: +41 31 561 61 10
Fax: +41 31 561 61 17
Kennen Sie bereits unser BPM Knowledge Center?