Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes XML and Related Technologies and the fly likes How to make an XML document into java class using jdom Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to make an XML document into java class using jdom" Watch "How to make an XML document into java class using jdom" New topic
Author

How to make an XML document into java class using jdom

Yogita Rakasi
Greenhorn

Joined: Jul 10, 2001
Posts: 2
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

Joined: Mar 22, 2000
Posts: 12769
    
    5
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
 
Consider Paul's rocket mass heater.
 
subject: How to make an XML document into java class using jdom