You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by "David O'Flanagan (CAPE)" <da...@capetechnologies.com> on 2005/04/04 17:37:53 UTC
RE: CDATA
Hi,
I would also like to be able to preserve the CDATA within an element.
I've got a test-only rule element that has to support the 'greater than'
and 'less than' operator directly (no entities). I would like to be able
to read the XML below in, modify the CDATA section and write it out
again as CDATA.
Is this possible with XMLBeans?
Thanks,
Dave.
XML segment:
<rule>
<condition><![CDATA[myString.length() < 2]]></condition>
</rule>
XSD segment:
<xs:complexType name="rule">
<xs:sequence>
<xs:element name="condition" type="condition" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="condition">
<xs:simpleContent>
<xs:extension base="xs:string"/>
</xs:simpleContent>
</xs:complexType>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org