Hi Jeff,

that's exactly what you should have done to map text content. Glad top see you got things working.

Regards
Werner

On 28.10.2010 15:39, katarn wrote:

Figures,  I spend a 1/2 day trying to figure this out, 10 minutes after I
post on a forum for help, bang I find the answer.

Anyway, for anyone who may find this post in a search and needs the answer I
just had to add the following bit of mapping to the mapping for the question
class in the quoted section below

                <field name="text" type="string" direct="false" 
transient="false">
                        <bind-xml name="." node="text" />
                </field>

Hope this helps someone else.



katarn wrote:


My mapping file is this...

<?xml version="1.0" encoding="UTF-8"?>
<mapping>
        <class name="test" auto-complete="false">
                <map-to xml="QuestionSet"/>
                 <field name="questionList" type="Question"
collection="array">
                <bind-xml name="question" node="element" />
                 </field>
     </class>
     <class name="Question">
                <map-to xml="question"/>
                <field name="id" type="string" direct="false" transient="false">
                        <bind-xml name="id" node="attribute" />
                </field>
                <field name="response" type="string" direct="false" 
transient="false">
                        <bind-xml name="response" node="attribute" />
                </field>
        </class>
</mapping>




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to