Java Utililty Methods XML Attribute Load

List of utility methods to do XML Attribute Load

Description

The list of methods to do XML Attribute Load are organized into topic(s).

Method

MaploadAttributes(Element e)
load Attributes
Map<String, Object> map = new HashMap<String, Object>();
NamedNodeMap nm = e.getAttributes();
for (int j = 0; j < nm.getLength(); j++) {
    Node n = nm.item(j);
    if (n instanceof Attr) {
        Attr attr = (Attr) n;
        map.put(attr.getName(), attr.getNodeValue());
return map;