Have you also tried to use xmlObject.documentProperties().setEncoding("ISO-8859-2")?
Radu -----Original Message----- From: Sebastian Mojko [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 27, 2007 5:29 AM To: dev@xmlbeans.apache.org Subject: Storing xmlBeans in Hibernate CLOB on DB2 - questions? Hi. Does anyone store xmlBeans Document as text in CLOBs using Hibernate 3.2? I've got some problems with it. How to transform xmlBeans XmlObject to XML text (and write it to CLOB in IMBDB2) with XML declaration (specialy including attribute "encoding", becouse We are using ISO-8859-2). I tried to use Hibernate.createClob(xmlObject.newReader(), ...), but I've got only element root without XML declaration. or How to save XmlObject in CLOB on Hibernate 3.2 (we are using IBM DB2). Thanks, Sebastian PS. I tried also xmlObject.newReader(opt) where opt = XmlOptions (with XmlOptions.SAVE_NO_XML_DECL=Boolean.FALSE) with same result. ________________________________________________________________________ ____________ No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. http://mobile.yahoo.com/mail --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]