siuyiuyiu
Nov 4th, 2006, 10:39 AM
Thanks a lot a quick reply!
Yes, I forgot to set the setMarshaller and setUnmarshaller method
But now, I am facing another questions
1) (Unmarshal) I cannot get the attribute value of the xml file, after it converts into object, but the element value is fine
<map-to xml="eFitnessProtocol"/>
<field name="Xmlns" set-method="setXmlns" get-method="getXmlns" type="java.lang.String"><bind-xml name="xmlns" node="attribute"/>
</field>
2) (marshal) I try to use the object (that is just converted by unmarshal class ) to convert back into xml file by using marshal class. But I don't know why it only return the root, no other element. I have tried if the element type is just a string type, there is no problem, but the type is defined by us, then it does not work.
(I have set the mapping file in applcationcontext file.)
Yes, I forgot to set the setMarshaller and setUnmarshaller method
But now, I am facing another questions
1) (Unmarshal) I cannot get the attribute value of the xml file, after it converts into object, but the element value is fine
<map-to xml="eFitnessProtocol"/>
<field name="Xmlns" set-method="setXmlns" get-method="getXmlns" type="java.lang.String"><bind-xml name="xmlns" node="attribute"/>
</field>
2) (marshal) I try to use the object (that is just converted by unmarshal class ) to convert back into xml file by using marshal class. But I don't know why it only return the root, no other element. I have tried if the element type is just a string type, there is no problem, but the type is defined by us, then it does not work.
(I have set the mapping file in applcationcontext file.)