Here you can find the source of parseAttributes(Node node)
public static Properties parseAttributes(Node node)
//package com.java2s; //License from project: Open Source License import java.util.Properties; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; public class Main { public static Properties parseAttributes(Node node) { Properties attributes = new Properties(); NamedNodeMap attributeNodes = node.getAttributes(); for (int i = 0; i < attributeNodes.getLength(); i++) { Node attribute = attributeNodes.item(i); attributes.put(attribute.getNodeName(), attribute.getNodeValue()); }//from www . j a v a 2s. c o m return attributes; } }