File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Create XML from java 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 "Create XML from java object" Watch "Create XML from java object" New topic
Author

Create XML from java object

Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 321
Hi

I am marshalling(creating XMl from java object)

The code is like this



I never have done this before. What should I expect from this? An XMl which is generated automatically without doing nothing or I have to create the XMl with the tag registrationOfficeCode?

Thanks

bala nannaka
Ranch Hand

Joined: Apr 02, 2007
Posts: 49
I think you can try this

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Create XML from java object
 
Similar Threads
JAXB and marshalling
Clarification Requested - XML recordset & JAXB classes
convert java classes to .xsd xml schema in eclise
Unmarshalling of nested child elements using jaxb
JAXB Question