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 Java in General and the fly likes I want to use java properties into loading an xml 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 » Java » Java in General
Bookmark "I want to use java properties into loading an xml" Watch "I want to use java properties into loading an xml" New topic
Author

I want to use java properties into loading an xml

bob morkos
Ranch Hand

Joined: Sep 06, 2001
Posts: 104
I have variables within my xml and I need to extract those variables into my java program. Could anyone explain. Any help would be greatly appreciated.
Manoj Pooleery
Ranch Hand

Joined: Sep 20, 2000
Posts: 35
First, if you are using the XML file as a descriptor(properties file) of some sort, you will have to parse it using any of the parsers available, which will return you a tree, from which you can extract the property value using Node.getAttribute or any similar method.
 
jQuery in Action, 2nd edition
 
subject: I want to use java properties into loading an xml
 
Similar Threads
ant and variables
abt xml
How to create XML document dynamically in VB
XML Schema and JAXB
Generate xml on fly