Here you can find the source of getAttrValuesByName(Element ele, String attributeName)
public static String getAttrValuesByName(Element ele, String attributeName)
//package com.java2s; import org.w3c.dom.*; public class Main { public static String getAttrValuesByName(Element ele, String attributeName) { return ele.getAttribute(attributeName); }//from www.j a va2 s . c o m }