XMLConfigReader
Source Code and Documentation
Description
XMLConfigReader is an Open Source Java class extension of Java ResourceBundle class to read configuration data directly from an XML file.
XMLConfigReader reads structured resource text data from an XML file and store it on a hashtable.
The hashtable keys are taken from the value of the first attribute of the <item> elements.
The hash table values are hashtables containing the sub-items names as keys and the sub-items data as value.
You instantiate the XMLConfigReader class in a program to read data from a XML file.
Once the class is instantiated, it reads all the data in a XML file and loads into a DOM (Document Object Model) tree. Then it populates a hashtable so the getString, getInt and getDouble methods can be called to find text information based on a key and subkey.
This project is shipped as
Eclipse project, with classes compiled into the "classes" directory.
However a packaged version of this class is available as a JAR archive inside the www directory.
To install the JAR file, just copy it on your project classpath.
Documentation and examples are included on the distribution.
Download XMLConfigReader from SourceForge
