This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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 Java 8 in Action this week in the Java 8 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I want to use java properties into loading an xml
 
Similar Threads
abt xml
Generate xml on fly
XML Schema and JAXB
ant and variables
How to create XML document dynamically in VB