title: XmlPullParser getAttributeValue returns null
body: <p>I have the following XML structure stored in my <em>assets/xml</em> folder:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;homescreen&gt;
      &lt;homeitem name="Name1"
                subtext="Description1"
                icon="iconresource1" /&gt;
      &lt;homeitem name="Name2"
                subtext="Description2"
                icon="iconresource2" /&gt;
      &lt;homeitem name="Name3"
                subtext="Description3"
                icon="iconresource3" /&gt;
  &lt;/homescreen&gt;
  </code></pre>
  
  <p>I'm reading each individual <code>homeitem</code> using an XmlPullParser:</p>
  
  <pre class="lang-java prettyprint-override"><code>int event;
  String TAG_ITEM = "homeitem";
  while ((event = parser.next()) != XmlPullParser.END_DOCUMENT) {
      if (event == XmlPullParser.START_TAG) {
          String tag = parser.getName();
          if (TAG_ITEM.equals(tag)) {
              // Works - Logs "Name1"
              Log.d(LOG_NAME, parser.getAttributeValue(0));
  
              // Works - Logs "name"
              Log.d(LOG_NAME, parser.getAttributeName(0));
  
              // Works - Logs ""
              Log.d(LOG_NAME, parser.getAttributeNamespace(0));
  
              // Fails - Logs null
              Log.d(LOG_NAME, parser.getAttributeValue(XmlPullParser.NO_NAMESPACE, "name"));
          }
      }
  }
  </code></pre>
  
  <p>My problem is: using <code>getAttributeValue(String, String)</code> <strong>always returns null</strong>. Using <code>getAttributeValue(Integer)</code> works fine. What am I doing wrong?</p>
  
  <p>Device: Nexus 10, Stock KitKat 4.4</p>