Code example for Element

Methods: getFirstChild

0
		} 
	} 
    
   public static String getCharacterDataFromElement(Element e) 
	{ 
		    Node child = e.getFirstChild();
		    if (child instanceof CharacterData) {
		       CharacterData cd = (CharacterData) child;
		       return cd.getData();
		    } 
		    return "?"; 
	 } 
    
}