>I have a class which has four attributes in it as follows.� I want the last
>attribute cData which is a string to be embedded
>within CDATA tags . How do I do this in the Mapping XML which the Marshall
>process uses? I have sent the java class which
>is the object, the class which sets the value for the object,the mapping XML
>and the output expected. In my example I get
>the cData attribute wrapped around element CDATA, butIwant it the actual CDATA
>tags around the string .Any help is
>appreciated.
Try the link from this page (last link posted by Keith). It gives an example of
marshalling out content where some elements have CDATA.
http://castor.exolab.org/phpBB2/viewtopic.php?t=19&highlight=cdata
If I remember correctly, I didn't need to bother with the mapping for my
particular needs. YMMV. Note: Some of the classes are from the Apache XML
classes, rather than the Castor classes.
Regards,
Neil
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user