Code example for CharacterData

Methods: getData

0
	 
	public static String getCharacterDataFromElement(Element e) {
	    Node child = e.getFirstChild();
	    if (child instanceof CharacterData) {
	       CharacterData cd = (CharacterData) child;
	       return cd.getData();
	    } 
	    return "?"; 
	  } 
	 
} 
Connect your IDE to all the code out there  Get Codota for Java