# \[ANN\] xml-configfile 0.9.0

**URL:** <https://rubytalk.org/t/ann-xml-configfile-0-9-0/4986>\
**Category:** ruby-talk\
**Created:** [3 March 2003 08:14 UTC](https://rubytalk.org/t/ann-xml-configfile-0-9-0/4986 "2003-03-03T08:14:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maik\_Schmidt](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@Maik\_Schmidt](https://rubytalk.org/u/Maik_Schmidt)\
**Post date:** [3 March 2003 08:14 UTC](https://rubytalk.org/t/ann-xml-configfile-0-9-0/4986/1 "2003-03-03T08:14:53Z")

</div>

Yo!

I have released version 0.9.0 of xml-configfile, a library for an easy  
handling of XML configuration files. It allows you to access  
configuration parameters stored in an XML file by using XPath.

Changes since last release:

- Added method set\_parameter, which allows to change the value  
of existing configuration parameters.
- Added path\_prefix, which enables you to define a prefix that  
will be put in front of all XPath expressions.
- Included module Observable, so it is possible now to add  
observers, that will be notified, if a configuration file  
has changed.
- Added method store, which stores the current configuration  
into a file.
- Added method to\_s, which returns the current configuration  
as an XML string.
- Added method close, which terminates the reloader thread.
- Renamed many methods, i.e. removed postfix “\_parameter”.  
The old method names still work, but will probably be removed  
in the future.
- Restructured unit tests and put many test cases into  
separate files.
- Added and improved documentation: Added sections ‘Observing  
a Configuration File’ and ‘Changing and Storing a  
Configuration File.’.

You can find a short tutorial here:  
[http://www.maik-schmidt.de/projects/xmlconfigfile/index.html](http://www.maik-schmidt.de/projects/xmlconfigfile/index.html)

You can download the current and all previous releases here:  
[http://www.maik-schmidt.de/projects/xmlconfigfile/dist/](http://www.maik-schmidt.de/projects/xmlconfigfile/dist/)

The RAA site is:  
[http://www.ruby-lang.org/raa/list.rhtml?name=xml-configfile](http://www.ruby-lang.org/raa/list.rhtml?name=xml-configfile)

Currently I am working on version 1.0.0. This first major release will  
probably contain at least two significant enhancements:

- A method to\_hash, that converts a DOM tree fragment into a Hash in the  
same way as function XMLin of the Perl module XML::Simple  
([http://www.cpan.org/modules/by-module/XML/XML-Simple-2.03.readme](http://www.cpan.org/modules/by-module/XML/XML-Simple-2.03.readme)) does.

- The possibilty to create new configuration parameters on the fly.  
Currently it is only possibe to change existing ones.

Cheers,

> **···**
>
> –  
> Maik Schmidt  
> [mailto:contact@maik-schmidt.de](mailto:contact@maik-schmidt.de)
