title: How to get an attribute from an XMLReader
body: <p>I have some HTML that I'm converting to a <code>Spanned</code> using <code>Html.fromHtml(...)</code>, and I have a custom tag that I'm using in it:</p>
  
  <pre><code>&lt;customtag id="1234"&gt;
  </code></pre>
  
  <p>So I've implemented a <code>TagHandler</code> to handle this custom tag, like so:</p>
  
  <pre><code>public void handleTag( boolean opening, String tag, Editable output, XMLReader xmlReader ) {
  
      if ( tag.equalsIgnoreCase( "customtag" ) ) {
  
          String id = xmlReader.getProperty( "id" ).toString();
      }
  }
  </code></pre>
  
  <p>In this case I get a SAX exception, as I believe the "id" field is actually an attribute, not a property. However, there isn't a <code>getAttribute()</code> method for <code>XMLReader</code>. So my question is, how do I get the value of the "id" field using this <code>XMLReader</code>? Thanks.</p>