How to Serialize/deserialize object with XStream, which has xml property in it?

as4uif

New Member
I am using XStream to serialize/deserialize Java Object. It is simple pojo class, but on of it's properties is also xml. How do i serialization works fine, but i am unable to deserialize it.Example:\[code\]public class Foo implements Serializable { ..... String xmlProperty; ....}\[/code\]Because this xmlProperty is also xml XStream have trouble deserializing it. The error i receive is:\[code\]Caused by: org.xml.sax.SAXParseException; lineNumber: 32; columnNumber: 25; The processing instruction target matching "[xX][mM][lL]" is not allowed.\[/code\]
 
Back
Top