Hi,
I have an table mapped having a column with Clob type. This column is to hold my xml data.
I am trying to save a UTF-8 encoded xml. And I read the xml from the file using BufferedReader. Just before the save the xml file has the root tag as
Code:
<?xml version="1.0" encoding="UTF-8"?>
But after saving the column data becomes like this:
Code:
?xml version="1.0" encoding="UTF-8"?>
So when i try to parse the XML, it gives me exception saying "Content not allowed in Prolog"
The first character is knocked off.
I have heard about Byte Order Marking coming for UTF-8 encoded xmls from some Editors? Can this be due to that.
I am using MySQL as database.
Please let me know if anyone of you has seen this issue before
Thanks in advance
Dhanush Gopinath