Announcement Announcement Module
Collapse
No announcement yet.
Marshaller and Unmarshaller Again Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Marshaller and Unmarshaller Again

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

  • #2
    Is it possible to marshal and unmarshal with setting namespace?

    if the xml file with namespace, can I using marshal or unmarshal class to do conversion?

    thanks

    Comment

    Working...
    X