nodeType = p.getNodeType();
nodeType = p.getNode().getNodeType();
	private Node findNextTextOrElementNode(Node n) {		if (n == null) 			return null;        int nodeType = n.getNodeType();		if (nodeType == NodeImpl.REFERENCE_NODE) {			//Retrieve the actual node type			NodeProxy p = ((ReferenceNode)n).getReference();            nodeType = p.getNodeType();            		}				while (!(nodeType == Node.ELEMENT_NODE || nodeType == Node.TEXT_NODE)) {			n = n.getNextSibling();            			if (n == null) 				return null;            nodeType = n.getNodeType();		}		return n;	}