The list of methods to do XML Attribute Set are organized into topic(s).
Map
attrbiuteToMap(NamedNodeMap attributes)
attrbiute To Map
if (attributes == null)
return new LinkedHashMap<String, String>();
Map<String, String> result = new LinkedHashMap<String, String>();
for (int i = 0; i < attributes.getLength(); i++) {
result.put(attributes.item(i).getNodeName(), attributes.item(i).getNodeValue());
return result;
boolean
attributeBoolValue(Element e, String attr) attribute Bool Value
if (!e.hasAttribute(attr))
return false;
String val = e.getAttribute(attr);
return val.equals("yes") || val.equals("true") || val.equals("1");