Hi
I am trying to unmarshall an XML like this
<schooling>
<grade type="5">
</schooling>
the java classes are like
Class School {
Grade grade ;
}
Class Grade {
Type type ;
}
Class Type {
String value;
Getter/Setter for Value
}
The Mapping I did
<class name = "src.Schooling" >
<map-to xml="schooling"/>
<field name ="grade" type = "src.Grade">
<bind-xml name="grade" />
</field>
</class>
<class name = "src.Grade" >
<map-to xml="grade"/>
<field name = "type" type = "src.Type" >
<bind-xml name="type" />
</field>
</class>
<class name = "src.Type" >
<map-to xml="type"/>
<field name = "value" type = "string" set-method="setValue">
<bind-xml name="type" node="attribute" location="grade"/>
</field>
</class>
No Exception is thrown but School.getGrade().getType().getValue() returns
Null .
Any input is higly appreciated .
Thanks.
--
View this message in context:
http://www.nabble.com/UnMarshalling-Returns-Null-But-No-Exceptions-tf4267228.html#a12144274
Sent from the Castor - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email