title: How to parse XML from R.xml folder?
body: <p>While doing this I followed <a href="http://www.androidhive.info/2011/11/android-xml-parsing-tutorial/" rel="nofollow">this tutorial</a>. It parses XML well, but from URL. I need to change XML source to R.xml folder.</p>
  
  <pre><code>ArrayList&lt;HashMap&lt;String, String&gt;&gt; menuItems = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
  XMLParser parser = new XMLParser();
  String xml = parser.getXmlFromUrl(URL); // getting XML
  Document doc = parser.getDomElement(xml); // getting DOM element`
  </code></pre>
  
  <p>How to change <code>String xml = parser.getXmlFromUrl(URL);</code> line of code so that XML will be taken from R.xml folder?</p>