if(node.getNodeType() == Node.ELEMENT_NODE)
if(node.getNodeType() == Node.ELEMENT_NODE) {
    private void endNode(NodeImpl node, Receiver receiver) throws SAXException {    	if(node.getNodeType() == Node.ELEMENT_NODE)    		receiver.endElement(node.getQName());    }