Here you can find the source of getAttribute(Element element, String nodeName)
Parameter | Description |
---|---|
element | Parent element |
nodeName | the Node Name |
public static String getAttribute(Element element, String nodeName)
//package com.java2s; import org.w3c.dom.Element; public class Main { /**// w w w. ja v a 2 s . c o m * Returns the attribute of the provided nodeName. * @param element Parent element * @param nodeName the Node Name * @return Attribute Name */ public static String getAttribute(Element element, String nodeName) { return element.getAttribute(nodeName); } }