/** * Translate into SAX * * @param contentHandler * (Required) The registered contentHandler where SAX events * should be routed too. * @param lexicalHandler * (Required) The registered lexicalHandler where lexical events * (such as CDATA, DTD, etc) should be routed too. * @param namespaces * (Required) SAX Helper class to keep track of namespaces able * to determine the correct prefix for a given namespace URI. */ public void toSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, NamespaceSupport namespaces) throws SAXException { if (!merged) { startElement(contentHandler, namespaces, E_BODY, null); } for (Division division : divisions) { division.toSAX(contentHandler, lexicalHandler, namespaces); } if (!merged) { endElement(contentHandler, namespaces, E_BODY); } }