SAX.setDocumentLocator() SAX.startDocument() SAX.internalSubset(test, , ) SAX.entityDecl(newline, 1, (null), (null), ) SAX.getEntity(newline) SAX.externalSubset(test, , ) SAX.getEntity(newline) SAX.startElement(test, newline='&newline;') SAX.endElement(test) SAX.endDocument()