Problem with parsing of UTF-8 encoded xml files in Android 3.1 sdk
<p>Xml parsing api is throwing sax parse exception, If i try to parse a xml file which has attributes at root node.</p>

<p>One thing i have noticed is that, this happens if there is a UTF-8 BOM character at the start of the string, if i remove the BOM character things work fine. This code is working fine on 3.0 sdk and below, i saw this problem only in 3.1</p>

<p>am using following parser:</p>

<pre><code>    DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = docFactory.newDocumentBuilder();

    Document doc = null;
    StringReader sr = new StringReader(xmlString);
    InputSource is = new InputSource(sr);

    doc = builder.parse(is);
</code></pre>
