Here you can find the source of getAttributeStringValue(Node htmlForm, String attributeName, String defaultValue)
protected static String getAttributeStringValue(Node htmlForm, String attributeName, String defaultValue)
//package com.java2s; //License from project: Open Source License import org.w3c.dom.Node; public class Main { protected static String getAttributeStringValue(Node htmlForm, String attributeName, String defaultValue) { Node item = htmlForm.getAttributes().getNamedItem(attributeName); return item == null ? defaultValue : item.getNodeValue(); }/*from ww w . j a va 2 s . com*/ }