Here you can find the source of getStringAttributeValue(Element element, String attribute)
public static String getStringAttributeValue(Element element, String attribute)
//package com.java2s; import org.w3c.dom.*; public class Main { public static String getStringAttributeValue(Element element, String attribute) { Attr a = element.getAttributeNode(attribute); return a != null ? a.getValue() : null; }/* www . j a v a 2s. c o m*/ }