wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes how to get xml from java object using JAXB 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 "how to get xml from java object using JAXB" Watch "how to get xml from java object using JAXB" New topic
Author

how to get xml from java object using JAXB

krishna chitturi
Greenhorn

Joined: Nov 26, 2002
Posts: 11
hi
i have java object and i need to get xml from it, we are using JAXB for unmarshal(java object to xml).we are generating JAXB object it has two methods named marshal and unmarshal.unmarshal is used to get java object from XML , how to call marshal to get xml from jaxb.that unmarshal method is taking Marshallaer as parameter, how can i pass Marshaller as Marshaller is private final class.
please help me out.
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Well, there is a JAXB Primer.
But I will move this where you might get a better response.
hmmmm the XML forum - or the "Other API's forum"??
Well, I pick the XML forum.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get xml from java object using JAXB
 
Similar Threads
how to get XML form javaobject using JAXB
how to get XML from javaobject using JAXB
how to get XML from javaobject using JAXB
What is the best practice to store an object graph?
How to marshal data from a SOAP header and write it to disc