How to Parse XML With Multiple Nodes?
<pre><code>     I Want To Parse XML simply using any Parsing Method ,I Have a XML with following format, Please give me help urgently,
</code></pre>

<p>bellow is my sample of xml I am tried it using DOM Parser but I does not get succession,,</p>

<pre><code> &lt;Main&gt;
      &lt;name&gt; 
          &lt;firstname&gt;ABC&lt;/firstname&gt;
          &lt;lastname&gt;XYZ&lt;/lastname&gt;
     &lt;/name&gt;
   &lt;address&gt;
      &lt;homeaddress&gt;
              &lt;pobox&gt;PQR&lt;/pobox&gt;
               &lt;city&gt;MNQ&lt;/city&gt;
       &lt;/homeaddress&gt;
       &lt;officeaddress&gt;      
               &lt;pobox&gt;JKL&lt;/pobox&gt;
               &lt;city&gt;URI&lt;/city&gt;
            &lt;/officeaddress&gt;
     &lt;/address&gt;
  &lt;Main&gt;
</code></pre>
