receiver.endPrefixMapping(nsQName.getLocalName());
if ("xmlns".equals(nsQName.getLocalName())) receiver.endPrefixMapping(""); else receiver.endPrefixMapping(nsQName.getLocalName());
    private void endNode(NodeImpl node, Receiver receiver) throws SAXException {    	if(node.getNodeType() == Node.ELEMENT_NODE) {    		receiver.endElement(node.getQName());    		// end all prefix mappings used for the element    		int nr = node.nodeNumber;	    	int ns = document.alphaLen[nr];	        if (-1 < ns) {	        	while (ns < document.nextNamespace	        			&& document.namespaceParent[ns] == nr) {	        		QName nsQName = (QName) document.namePool	                	.get(document.namespaceCode[ns]);	        		receiver.endPrefixMapping(nsQName.getLocalName());	        		++ns;	        	}	        }    	}    }