This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Creating xml structure from java bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Creating xml structure from java bean" Watch "Creating xml structure from java bean" New topic
Author

Creating xml structure from java bean

James Peter
Ranch Hand

Joined: Sep 15, 2010
Posts: 115
Hi All,

Is there any way by which i can create xml structure from java bean dynamically?

requirement is if I pass a java bean then i should get xml structure.





Rgds
Peter
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12758
    
    5
java.beans.XMLEncoder
James Peter
Ranch Hand

Joined: Sep 15, 2010
Posts: 115
Hi,

Thanks a lot.

Rgds
Peter
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Creating xml structure from java bean
 
Similar Threads
JSTL over a Set: Did not get data as expected
creating a sample java bean
how to remove indentation in a xml using java api
Trouble with XML parsing
Validating an XML File