Hi , 

Is it possible to map the below XML to a Class like Count.java with an field
int count ?

<count>
100
</count>

when I tried it threw an exception 

Caused by: org.xml.sax.SAXException: Illegal Text data found as child of:
count
  value: "100"

Mapping I used : 
 <field name = "count" type = "src.lesson3.RecordCount">
                     <bind-xml name="count"/>
              </field>

But if I wrap the value 100 within a tag like this it wraps 
<count>
  <val> 100 </val>
</count>

I would like to know if a single text could be mapped ?

any input is apprciated.



-- 
View this message in context: 
http://www.nabble.com/Read-text-into-a-Class-attribute-tf4257914.html#a12117346
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