protected void serializeToSAX(Document doc, boolean generateDocEvent)
protected void serializeToSAX(DocumentImpl doc, boolean generateDocEvent)
	protected void serializeToSAX(Document doc, boolean generateDocEvent)		throws SAXException {		long startTime = System.currentTimeMillis();		setDocument((DocumentImpl) doc);		NodeList children = doc.getChildNodes();		if (generateDocEvent)			contentHandler.startDocument();		contentHandler.startPrefixMapping("exist", EXIST_NS);		for (int i = 0; i < children.getLength(); i++)			 ((NodeImpl) children.item(i)).toSAX(contentHandler, lexicalHandler, false);		contentHandler.endPrefixMapping("exist");		if (generateDocEvent)			contentHandler.endDocument();		LOG.debug(			"serializing document took " + (System.currentTimeMillis() - startTime));	}