Open Source Software Solutions

XMLConfigReader

NameXMLConfigReader
Version1.0.003
Date2006-02-03
AuthorNicola Asuni
CopyrightTecnick.com S.r.l.
Via Ugo Foscolo n.19
09045 Quartu Sant'Elena (CA)
ITALY
www.tecnick.com
LicenseGNU LESSER GENERAL PUBLIC LICENSE v.2.1

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

Get XMLConfigReader at SourceForge.net. Fast, secure and Free Open Source software downloadsSupport This Project

IT | EN
W3C XHTML 1.0 | W3C CSS 2.0