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 "?"; 
	 } 
    
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE