File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes Marshalling From XML to Object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Marshalling From XML to Object" Watch "Marshalling From XML to Object" New topic

Marshalling From XML to Object

Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 321

I am trying from a XML create an object with the same fields and add the content inside the object. My code is like:

I think this makes not sense because I should passthe XML. But I am confuse.

Also what is the real difference between marshalling and unmarshalling

It is sorta covered in the JavaRanch Style Guide.
subject: Marshalling From XML to Object
Similar Threads
JAXB Marshal issue? Program TERMINATES, No exception thrown!
Marshalling and unmarshalling java objects (Castoring)
Need help--how to add new attributes to the existing xml
MarshallableObject for java 6 version
Marshalling and unmarshallilng java Objects(castoring)