@Override
    public void endDocument() throws SAXException {
        ids.clear();
        super.endDocument();
    }
@see org.xml.sax.helpers.XMLFilterImpl#endDocument()
src/nu/validator/xml/IdFilter.java