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