Get attribute's value : DOM Attribute « XML « Java
- Java
- XML
- DOM Attribute
Get attribute's value
import org.w3c.dom.Attr;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
public class Main {
// get attribute's value
public static String getValue(Attr attribute) {
return attribute.getValue();
} // getValue(Attr):String
}
Related examples in the same category