It's the first time that I am trying to use XDR schemas to create xml views. It works fine except that using sql:use-data="1" for one element,

<ElementType name="cdata" sql:field="text" sql:use-cdata="1" />

the result shows wrong. If I set its value to "0", the result has the right structure.

<?xml version="1.0" encoding="utf-8" ?>
<step>
<contentText>
<resourceName>intro</resourceName>
<cdata>Meet professional writer, redithber.</cdata>
</contentText>
<contentText>
<resourceName>objective</resourceName>
<cdata>In this lesson, you&apos;ll learn a drafting strategy for writing personal narratives.</cdata>
</contentText>
</step>

If I set its value to "1", the result is like the below(all the cdata tags get together under the second element):

<ROOT>
<step>
<contentText>
<resourceName>intro</resourceName>
</contentText>
<contentText>
<resourceName>objective</resourceName>
<cdata><![CDATA[Meet professional writer, Meredith Weber.]]>
</cdata>
<cdata><![CDATA[In this lesson, you'll learn a drafting strategy for writing personal narratives.]]></cdata>
</contentText>
</step>


I wonder if anyone here could help me with this problem, thanks a lot!!!