-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Saving a Clob Object
PostPosted: Thu Oct 30, 2008 5:41 am 
Newbie

Joined: Thu Oct 30, 2008 5:13 am
Posts: 2
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.