Here you can find the source of getLowerAttrValue(Node node, String attr)
public static String getLowerAttrValue(Node node, String attr)
//package com.java2s; //License from project: Open Source License import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; public class Main { public static String getLowerAttrValue(Node node, String attr) { String value = getAttrValue(node, attr); if (value != null) { return value.toLowerCase(); } else {//from ww w .j a va 2 s .c om return null; } } public static String getAttrValue(Node node, String attr) { NamedNodeMap attrs = node.getAttributes(); Node baseAttr = attrs.getNamedItem(attr); if (baseAttr == null) { return ""; } return baseAttr.getNodeValue(); } }