How can I force an XML element to use the CDATA type? I want to enclose
some HTML formatted text inside an XML element like this:
<content ID="1000">![CDATA[<P>laah ditty dahh</P>]]</content>
(CDATA is not currently included)
Is there a way I can set this in the mapping.xml? Here is my current
mapping for this object:
<class name="showplan.model.StepHtml" identity="id">
<description>Represents some HTML text to be displayed in a step
detail</description>
<map-to table="step_text" xml="text" />
<field name="id" type="integer" >
<sql name="step_id" type="integer"/>
<bind-xml name="ID" node="attribute"/>
</field>
<field name="content" type="string" >
<sql name="step_text" type="varchar"/>
<bind-xml name="content" node="text"/>
</field>
</class>
Thanks,
August
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev