Code example for Element

Methods: getElementsByTagName

0
	 *  
	 * @see testTag 
	 */ 
	public XmlDom tag(String tag){
		 
		NodeList nl = root.getElementsByTagName(tag);
		 
		XmlDom result = null;
		 
		if(nl != null && nl.getLength() > 0){
			result = new XmlDom((Element) nl.item(0));
		} 
		 
		 
		return result;
	} 
	 
	/** 
	 * Return a node that represents the first matched tag. 
	 *