1 SAX.setDocumentLocator() 2 SAX.startDocument() 3 SAX.internalSubset(EXAMPLE, , example.dtd) 4 SAX.entityDecl(xml, 1, (null), (null), Extensible Markup Language) 5 SAX.getEntity(xml) 6 SAX.externalSubset(EXAMPLE, , example.dtd) 7 SAX.getEntity(xml) 8 SAX.startElement(EXAMPLE, prop1='a&b', prop2='&xml;') 9 SAX.characters( 10 Test of entities in attribu, 35) 11 SAX.endElement(EXAMPLE) 12 SAX.endDocument() 13