ArrayList prefixes )
Set namespaces)
    public void toSAX( ContentHandler contentHandler,                       LexicalHandler lexicalHandler, boolean first,                       ArrayList prefixes )         throws SAXException {        if ( first ) {            AttributesImpl attribs = new AttributesImpl();            attribs.addAttribute( "http://exist.sourceforge.net/NS/exist", "id",                "exist:id", "CDATA", Long.toString( gid ) );            attribs.addAttribute( "http://exist.sourceforge.net/NS/exist", "source",                "exist:source", "CDATA", ownerDocument.getFileName() );            attribs.addAttribute( getNamespaceURI(), getLocalName(),                getNodeName(), "CDATA", getValue() );            contentHandler.startElement( "http://exist.sourceforge.net/NS/exist", "attribute",                "exist:attribute", attribs );            contentHandler.endElement( "http://exist.sourceforge.net/NS/exist", "attribute",                "exist:attribute" );        }    }