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 "?"; 
	} 
	 
	 @Override 
	    public void onCreateContextMenu(ContextMenu menu, View v,
	            ContextMenuInfo menuInfo) {
	        super.onCreateContextMenu(menu, v, menuInfo);
	        menu.add(0, MENU_ACTION_DELETE_ID, 0, R.string.menu_delete);
	    } 
 
	    @Override 
	    public boolean onContextItemSelected(MenuItem item) {
	        switch(item.getItemId()) {
	            case MENU_ACTION_DELETE_ID: