# Query on XmlConfigFile

**URL:** <https://www.ruby-forum.com/t/query-on-xmlconfigfile/160228>\
**Category:** Ruby\
**Created:** [February 13, 2009, 7:35am UTC](https://www.ruby-forum.com/t/query-on-xmlconfigfile/160228 "2009-02-13T07:35:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![naresh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/c68b51/32.png) [@naresh](https://www.ruby-forum.com/u/naresh)\
**Post date:** [February 13, 2009, 7:35am UTC](https://www.ruby-forum.com/t/query-on-xmlconfigfile/160228/1 "2009-02-13T07:35:02Z")

</div>

I am using XmlConfigFile from as under  
[http://www.cs.ualberta.ca/~schofiel/xml-configfile/xml-configfile.html](http://www.cs.ualberta.ca/~schofiel/xml-configfile/xml-configfile.html)

I was dissappointed not to find any Q&A in the ruby forum about this  
Simple and Easy Ruby+XML utility.

For anyone who is using this please help me to solve the following

I am parsing an XML document and I need to extract the element values  
and attributes.

I am tryin as per the above link under “Handling Sets of Configuration  
Parameters” I could not store the values resulting Hash into a variable  
so that it shall be printed using either puts or print. I mean to access  
every element value or attribute into a unique variable.

Attached are my Script and XML File.

regards,  
Naresh
