Hello there,

I'm using Castor binding to generate Java sources. I need to have an element
containing only CDATA text (unformatted HTML).
I have two questions:
- How to define such an element using the XMLSchema recommendation.
- How to read/write CDATA properties in the generated sources.

I've tried different combinations of schema types and writing of properties.

The problems I have:
- When unmarshalling a (valid) xml document, containing
"<![CDATA[somedata]]>", the tags get lost, and I only have "somedata" left
when requesting the property or marshalling to a new xml.
- The generated setElement(String) does not accept "<![CDATA[somedata]]>" or
"somedata" string when somedata contains tags.

I use:
- Castor-J 0.9.3
- Xerces 1.4.2

Any help is greatly appreciated.

Thanks,
 Michel Smits
 [EMAIL PROTECTED]

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to