title: The method add(String) in the type ArrayList<String> is not applicable for the arguments (HashMap<String,String>)
body: <p>How to fix this error The method add(String) in the type ArrayList is not applicable for the arguments (HashMap).</p>
  
  <p>I am trying to put androidhive.com xml parsing on custom listview on my application</p>
  
  <p>heres my code:</p>
  
  <pre><code>private void prepareListData() {
  
  
      //ArrayList&lt;HashMap&lt;String, String&gt;&gt; songsList = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
      ArrayList&lt;String&gt; songsList = new ArrayList&lt;String&gt;();
  
  
      com.test.utilities.XMLParser parser = new com.test.utilities.XMLParser();
      String xml = parser.getXmlFromUrl(URL); // getting XML from URL
      Document doc = parser.getDomElement(xml); // getting DOM element
  
      NodeList nl = doc.getElementsByTagName(KEY_SONG);
      // looping through all song nodes &lt;song&gt;
      for (int i = 0; i &lt; nl.getLength(); i++) {
          // creating new HashMap
          HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
          Element e = (Element) nl.item(i);
          // adding each child node to HashMap key =&gt; value
          map.put(KEY_ID, parser.getValue(e, KEY_ID));
          map.put(KEY_TITLE, parser.getValue(e, KEY_TITLE));
          map.put(KEY_ARTIST, parser.getValue(e, KEY_ARTIST));
          map.put(KEY_DURATION, parser.getValue(e, KEY_DURATION));
          map.put(KEY_THUMB_URL, parser.getValue(e, KEY_THUMB_URL));
  
          // adding HashList to ArrayList
          songsList.add(map);
      }
  
      listDataHeader = new ArrayList&lt;String&gt;();
      listDataChild = new HashMap&lt;String, ArrayList&lt;String&gt;&gt;();
  
      // Adding child data
      listDataHeader.add("VRP Medical Bay");
      //listDataHeader.add("");
      //listDataHeader.add("");
  
      // Adding child data
  
      ArrayList&lt;String&gt; listUnderVRP = new ArrayList&lt;String&gt;();
  
      //listUnderVRP.add("eDataClinical");
      //listUnderVRP.add("Schedule");
      //listUnderVRP.add("Dictate");
      //listUnderVRP.add("View Messages");
      //listUnderVRP.add("Reports for Signature");
      //listUnderVRP.add("View Billing");
      //listUnderVRP.add("View State");
  
  
      listDataChild.put(listDataHeader.get(0), songsList); // Header, Child data
      //listDataChild.put(listDataHeader.get(1), nowShowing);
      //listDataChild.put(listDataHeader.get(2), comingSoon);
  }
  </code></pre>