private String getValueForElement(String elementName,Node node) throws Exception{
		if(node.getNodeType()==Node.ELEMENT_NODE){
			Element elem = (Element)node;
			
			if(elem.getElementsByTagName(elementName).getLength()>=1){
				Element x = (Element) elem.getElementsByTagName(elementName).item(0);
				
				if(x.hasChildNodes()&&x.getChildNodes().getLength()==1){
					return x.getChildNodes().item(0).getNodeValue();
				}
			}
		}
		
		return null;
	}