-->
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: handling cdata
PostPosted: Fri May 06, 2011 8:15 am 
Regular
Regular

Joined: Thu Nov 26, 2009 8:45 am
Posts: 78
Hi,

im using the unmarshalling mechanism of JAXB to get Objects from xml files, which are mapped in my project to be stored in a db.
Some of these xmlfiles contain cdata elements, which produces some errors. all the files are utf8 encoded, the unmarshaller reads from an utf-8 inputstream, but still i get a
Code:
java.sql.BatchUpdateException: Batch-Eintrag 0 update classname set attributename=attribute value

it seems, that the special characters like that space in "attribute value" just are just not being escaped, or, the '' around strings like that are missing. How can i tell hibernate to handle these data correctly?

any help appreciated.


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.