IntelliJ Java IDE
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
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply 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: 11862
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

Java Resources at www.wbrogden.com
 
 
subject: How to make an XML document into java class using jdom
 
Threads others viewed
Writing large chunk of data in XML
Convert DOM Document back to XML file
recursion backwards?
JDOM adding new elements to existing XML documents
XML Document
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture