path.addComponent(parent.getNodeName()); parent = parent.getParentNode();
path.addComponent(parent.getQName()); parent = (NodeImpl)parent.getParentNode();
	public NodePath getPath() {		NodePath path = new NodePath();		Node parent = getParentNode();		while (parent.getNodeType() != Node.DOCUMENT_NODE) {		    path.addComponent(parent.getNodeName());			parent = parent.getParentNode();		}		return path;	}