Code example for Element

Methods: getAttributeNodeNS

0
			String attrName) {
		String attrValue = null;
		Attr attr = null;
 
		// Get the attribute using its name 
		if ((attr = element.getAttributeNodeNS(namespace, attrName)) != null)
		{ 
			attrValue = attr.getValue().trim();
		} 
 
		// Return attribute value 
		return attrValue;
	} 
 
	/** 
	 * Get the first child element from the input elment. 
	 *  
	 * @param element an Element object. 
	 * @return the firstchild element. 
	 */ 
	public static Element getFirstChild(Element element) {