Marcelo Klein wrote:
> Hi everyone,
> Is there a simple way to insert an XML structure to a string field in an
> object?
>
> the example would be
>
> <root>
> <structure>
> <textstructure>
> this is just some text
> </textstructure>
> </structure>
> </root>
>
> so i can have an object like this >>
>
> public class MyStruct {
> private String structure;
> }
>
> so at the end i would like to have a string like "<textstructure>\n this
> is just some text\n</textstructure>" inside my structure field.
> Is this possible?
> Or i need some custom serialization / deserialization?
>
This is actually relatively difficult. The deserilization process will
want to convert the "<" and ">" characters into their equivalent "<"
and ">".
I figured out how to do this at one point by writing by own custom
(de)serializer, and modifying the JiBX code to skip the character
conversion process. But the code no longer works with the newer versions
of JiBX, and we revered to leaving our HTML code in a CDATA section.
--
Thomas Jones-Low Softstart Services Inc.
[EMAIL PROTECTED] JobScheduler for Oracle
Ph: 802-398-1012 http://www.softstart.com
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users