E
Elhanan
hi..
for some reason i cannot use java xml blindings but here in xml i have:
<CaseObject TypeId=23>
<AttributeType TypeId=233>
<StringValue Value="Hello"/>
</AttributeType>
<AttributeType TypeId=2323>
<NumericValue Value="2"/>
</AttributeType>
</CaseObject>
what i wanna do is to create a method that given a root of an object
model in POJO as one paramater, and an xml node like the AttributeType
Element, will know to look in a special xml mapping file i will create,
and according to the typeid Attribute specfied in the mapping xml will
update the property of the root object model (or one of its class
propeties) with the class (like NumberClass for numberType and
StringClass for StringValue xml)
for example
for typeid=23 get Create CaseObject1 Object with the property
StringValue Property..
oh and vice versa, a function that will circle through all the
properties of the class, and for each property type create an xml node
for it.
is that possible? (don't know if told it correctly)..
for some reason i cannot use java xml blindings but here in xml i have:
<CaseObject TypeId=23>
<AttributeType TypeId=233>
<StringValue Value="Hello"/>
</AttributeType>
<AttributeType TypeId=2323>
<NumericValue Value="2"/>
</AttributeType>
</CaseObject>
what i wanna do is to create a method that given a root of an object
model in POJO as one paramater, and an xml node like the AttributeType
Element, will know to look in a special xml mapping file i will create,
and according to the typeid Attribute specfied in the mapping xml will
update the property of the root object model (or one of its class
propeties) with the class (like NumberClass for numberType and
StringClass for StringValue xml)
for example
for typeid=23 get Create CaseObject1 Object with the property
StringValue Property..
oh and vice versa, a function that will circle through all the
properties of the class, and for each property type create an xml node
for it.
is that possible? (don't know if told it correctly)..