List of utility methods to do XML Attribute to Map
Map | toMap(NamedNodeMap attrs) to Map return toMapExcept(attrs);
|
Map | toMapExcept(NamedNodeMap attrs, String... exclusions) to Map Except Map<String, String> args = new HashMap<String, String>(); outer: for (int j = 0; j < attrs.getLength(); j++) { Node attr = attrs.item(j); String attrName = attr.getNodeName(); for (String ex : exclusions) if (ex.equals(attrName)) continue outer; String val = attr.getNodeValue(); ... |