title: how to parse xml to java in nodelist
body: <p>that is my xml </p>
  
  <pre><code>&lt;?xml version = "1.0" encoding = "UTF-8"?&gt;
   &lt;ns0:GetADSLProfileResponse xmlns:ns0 = "http://"&gt;
  &lt;ns0:Result&gt;
      &lt;ns0:eCode&gt;0&lt;/ns0:eCode&gt;
      &lt;ns0:eDesc&gt;Success&lt;/ns0:eDesc&gt;
  &lt;/ns0:Result&gt;
  &lt;/ns0:GetADSLProfileResponse&gt; 
  </code></pre>
  
  <p>that is my code in java I need to know how to start in this 
  I tried some code online but still did not solve my problem 
  how to get the values in the result to loop in it and get 0 in ecode and Success in eDesc</p>
  
  <pre><code>CustomerProfileResult pojo = new CustomerProfileResult();
      String body = readfile();
      System.out.println(body);
      try {  
          DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
          DocumentBuilder db = dbf.newDocumentBuilder();
          Document dom = db.parse(new InputSource(new StringReader(body)));
          XPath xpath =XPathFactory.newInstance().newXPath();
  
          XPathExpression name = xpath.compile("/xml/GetADSLProfileResponse/Result");
          NodeList nodeName = (NodeList) name.evaluate(dom, XPathConstants.NODESET);
  
          if(nodeName!=null){
  
          } 
  </code></pre>