Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java -xml  RSS feed

 
BHAVESH SHA
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sir,
I wanted to Read java object to xml using JDom, where i can take my java object model into xml .In Object Model all my methods(get and set)should be there.Is there any tool that converts java files to xml.

Kindly advise for the same.

Thanks and Regards
Bhavesh Shah
 
Mike Keith
author
Ranch Hand
Posts: 304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by BHAVESH SHA:
Dear Sir,
I wanted to Read java object to xml using JDom, where i can take my java object model into xml .In Object Model all my methods(get and set)should be there.Is there any tool that converts java files to xml.

Kindly advise for the same.

Thanks and Regards
Bhavesh Shah

You might want to take a look at the JAXB standard and see if that suits you. There is also a runtime impl of object-XML mapping in the EPS project.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!