aspose file tools*
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 Java 8 in Action this week in the Java 8 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

I agree. Here's the link:
subject: Marshalling From XML to Object
Similar Threads
JAXB Marshal issue? Program TERMINATES, No exception thrown!
Marshalling and unmarshalling java objects (Castoring)
MarshallableObject for java 6 version
Need help--how to add new attributes to the existing xml
Marshalling and unmarshallilng java Objects(castoring)