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 ""; 
		}	 
	 
	 
	private int stringToInt( String string){
		return Integer.parseInt(string);
	} 
	 
}