Here you can find the source of getValuesMap(XmlPullParser parser)
public static HashMap<String, String> getValuesMap(XmlPullParser parser)
//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; } }