XML String parsing in Android?
<p>Hello to all I use the Following code to parse the XML file.</p>

<pre><code>DocumentBuilderFactory factory;
DocumentBuilder builder;
InputStream is;
Document dom;
    try {
        factory = DocumentBuilderFactory.newInstance();
        is = new FileInputStream(strFileName);
        builder = factory.newDocumentBuilder();

        dom = builder.parse(is);
        }
 catch(Exception e){}
</code></pre>

<p>Instead of XML file is there any way to parse the String.</p>

<pre><code>String xml="&lt;?xml version="1.0"?&gt; &lt;name&gt; Application&lt;/name&gt; &lt;demo&gt; Demo &lt;/demo&gt; &lt;/xml&gt;"; 
</code></pre>
