This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 386
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