title: Parsing custom xml config file
body: <p>My target is java 1.5
  I have a custom configuration file provided from another software provider i need to read it </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;environments&gt;
      &lt;environment key="DEFAULT" description="Default"&gt;
          &lt;variable name="LOGGER_NAME" value="LCI"/&gt;
          &lt;variable name="MAIL_SERVER" value="127.0.0.1"/&gt;
              ......
      &lt;/environment&gt;
      &lt;environment key="TEST" description="Test"&gt;
          &lt;variable name="LOGGER_NAME" value="LCO"/&gt;
          &lt;variable name="MAIL_SERVER" value="192.168.2.15"/&gt;
              ......
      &lt;/environment&gt;
  &lt;/environments&gt;
  </code></pre>
  
  <p>I need to put it in a hash map and acces to it as.</p>
  
  <p>MyPropertyManager.getProperty("DEFAULT","LOGGER_NAME")</p>
  
  <p>I think that I can load infos in a HashMap where I can acces usingg key like DEFAULT.LOGGER_NAME</p>
  
  <p>Can I use APACHE COMMONS Configuration (HOW?)  or is too complex and is better to use Xpath?</p>