Android XmlPullParser Value Get getValuesMap(XmlPullParser parser)

Here you can find the source of getValuesMap(XmlPullParser parser)

Description

get Values Map

Declaration

public static HashMap<String, String> getValuesMap(XmlPullParser parser) 

Method Source Code

//package com.java2s;

import java.util.HashMap;
import org.xmlpull.v1.XmlPullParser;

public class Main {

    public static HashMap<String, String> getValuesMap(XmlPullParser parser) {
        HashMap<String, String> map = new HashMap<String, String>();
        int length = parser.getAttributeCount();
        for (int i = 0; i < length; i++) {
            map.put(parser.getAttributeName(i), parser.getAttributeValue(i));
        }/*from  w w w  .j a va2 s  .  c  o  m*/
        return map;
    }
}

Related

  1. getPIData(XmlPullParser pp)
  2. getPITarget(XmlPullParser pp)
  3. getPITarget(XmlPullParser pp)
  4. getRequiredAttributeValue(XmlPullParser pp, String namespace, String name)
  5. getRequiredAttributeValue(XmlPullParser pp, String namespace, String name)
  6. loadFloatArrayByParser(XmlPullParser parser)
  7. loadFloatByParser(XmlPullParser parser)
  8. loadIntArrayByParser(XmlPullParser parser)
  9. loadStringArrayByParser(XmlPullParser parser)