title: How to parse this XML in Android?
body: <p>I am quite new to XML parsing and I have my method of parsing XML. Only that method is for simple XML layouts with just 1 child node.</p>
  
  <p>I now have to parse an XML file with childs that have childs that have childs (got it :)?)</p>
  
  <p>This is the parse-method I have now:</p>
  
  <pre><code>protected Map&lt;String, Maatschappij&gt; getAutopechTel() {
      Map&lt;String, Maatschappij&gt; telVoorAutopech = new HashMap&lt;String, Maatschappij&gt;();
  
      try {
          DocumentBuilder builder = DocumentBuilderFactory.newInstance()
                  .newDocumentBuilder();
          Document doc = builder.parse(getAssets().open("autopech.xml"));
          NodeList nl = doc.getElementsByTagName("dienst");
          for (int i = 0; i &lt; nl.getLength(); i++) {
              Node node = nl.item(i);
              Maatschappij maat = new Maatschappij();
  
              maat.setNaam(Xml.innerHtml(Xml.getChildByTagName(node, "naam")));
              maat.setTel(Xml.innerHtml(Xml.getChildByTagName(node, "tel")));
  
              telVoorAutopech.put(maat.getTel(), maat);
          }
      } catch (Exception e) {
      }
      return telVoorAutopech;
  }
  </code></pre>
  
  <p>How must I adjust this in order to parse this type of XML file:</p>
  
  <pre><code>   &lt;Message&gt;  
  
      &lt;Service&gt;Serviceeee&lt;/Service&gt;
  
        &lt;Owner&gt;Bla&lt;/Owner&gt;
  
        &lt;LocationFeedTo&gt;Too&lt;/LocationFeedTo&gt;
  
        &lt;Location&gt;http://maps.google.com/?q=52.390001,4.890145&lt;/Location&gt;
  
        &lt;Child1&gt;
  
          &lt;Child1_1&gt;
  
            &lt;Child1_1_1&gt;ANWB&lt;/Child1_1_1&gt;
  
          &lt;/Child1_1&gt;
        &lt;/Child1&gt;
  &lt;Message&gt;
  </code></pre>