Code example for XmlPullParser

Methods: getAttributeCount

0
   * Returns the number of attributes on the current element. 
   * 
   * @return the number of attributes on the current element 
   */ 
  public int numAttributes() { 
    return mParser.getAttributeCount();
  } 
 
  /** 
   * Returns the name of the nth attribute on the current element. 
   * 
   * @return the name of the nth attribute on the current element 
   */ 
  public String getAttributeName(int i) {
    return mParser.getAttributeName(i);
  } 
 
  /** 
   * Returns the namespace of the nth attribute on the current element. 
   * 
   * @return the namespace of the nth attribute on the current element