aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
ant and variables
Generate xml on fly
abt xml
How to create XML document dynamically in VB
XML Schema and JAXB