Code example for Node

Methods: getNextSibling, getParentNode

0
			e.printStackTrace();
			return false; 
		} 
		if (targetNode != null) {
 
			parent = targetNode.getParentNode();
			if (parent != null) {
				 
				// Android Workaround 
				try { 
					nextSibling = targetNode.getNextSibling();
				} catch (IndexOutOfBoundsException e) {
					nextSibling = null;
				} 
 
				parent.removeChild(targetNode);
				context.addNodeToDeletedNodeMap(this, targetNode);
				context.refreshNodeMap();
				undone = false;
 
				return true; 
			} else {