title: Java reading key value pair from xml
body: <p>I am new to java and I want to provide the key which is "aaa" and get the value "bbb" from the below xml file. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
    &lt;General&gt;
      &lt;add key="aaa" value="bbb"/&gt;
    &lt;/General&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>and this is my code which is not working:</p>
  
  <pre><code>           Properties prop = new Properties();
              InputStream is = new FileInputStream("c:\\propFileName.config");
              prop.load(is);
              String result = prop.getProperty("aaa");
  </code></pre>
  
  <p>Please help!</p>