Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make an XML document into java class using jdom

 
Yogita Rakasi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have an xml document which has multiple sets of key, pair and name value elements. This document contains the database connectivity information. I would like to convert this xml document into a java class using jdom and list. Please let me know the best way to do it. Also please send me an example or the links which would help me.
Thank you in advance.
Yogita
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you going to do with the class once you have it? The solution could be as simple as an object holding the DOM and having methods to query it.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic