Android XmlPullParser Value Get getAttributeValue(XmlPullParser pp, String name)

Here you can find the source of getAttributeValue(XmlPullParser pp, String name)

Description

Return value of attribute with given name and no namespace.

License

Open Source License

Declaration

public static String getAttributeValue(XmlPullParser pp, String name) 

Method Source Code

//package com.java2s;
// for license please see accompanying LICENSE.txt file (available also at http://www.xmlpull.org/)

import org.xmlpull.v1.XmlPullParser;

public class Main {
    /**//w ww .j av  a  2  s .c o  m
     * Return value of attribute with given name and no namespace.
     */
    public static String getAttributeValue(XmlPullParser pp, String name) {

        return pp.getAttributeValue(XmlPullParser.NO_NAMESPACE, name);
    }
}

Related

  1. getAttributeByName(XmlPullParser xpp, String name)
  2. getAttributeValue(XmlPullParser pp, String name)
  3. getAttributes( XmlPullParser pullParser)
  4. getAttributes( XmlPullParser pullParser, String namespace, String elementName, String attributeName, String attributeValue)
  5. getPIData(XmlPullParser pp)
  6. getPIData(XmlPullParser pp)