Here you can find the source of parseAttribute(NodeList abtList)
public static Map parseAttribute(NodeList abtList)
//package com.java2s; import java.util.HashMap; import java.util.Map; import org.w3c.dom.Node; import org.w3c.dom.NodeList; public class Main { public static Map parseAttribute(NodeList abtList) { Map map = new HashMap(); try {/* www. j av a2 s .c om*/ for (int i = 0; i < abtList.getLength(); i++) { Node abt = abtList.item(i); if (abt.getNodeType() == 1) { map.put(abt.getNodeName(), abt.getTextContent().replace("'", "").replace("?", "")); } } } catch (Exception e) { e.printStackTrace(); } return map; } }