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>
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Simple-unmarshal-problem-tp30076485p30076698.html
Sent from the Castor - User mailing list archive at Nabble.com.


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

    http://xircles.codehaus.org/manage_email


Reply via email to