1SAX.setDocumentLocator() 2SAX.startDocument() 3SAX.internalSubset(EXAMPLE, , example.dtd) 4SAX.entityDecl(xml, 1, (null), (null), Extensible Markup Language) 5SAX.getEntity(xml) 6SAX.entityDecl(title, 2, -//MY-TITLE//FR, title.xml, (null)) 7SAX.unparsedEntityDecl(image, (null), img.gif, GIF) 8SAX.externalSubset(EXAMPLE, , example.dtd) 9SAX.startElementNs(EXAMPLE, NULL, NULL, 0, 0, 0) 10SAX.characters( 11 , 3) 12SAX.getEntity(title) 13SAX.ignorableWhitespace( 14, 1) 15SAX.startElementNs(title, NULL, NULL, 0, 0, 0) 16SAX.characters(my title, 8) 17SAX.endElementNs(title, NULL, NULL) 18SAX.characters( 19, 1) 20SAX.ignorableWhitespace( 21, 1) 22SAX.startElementNs(title, NULL, NULL, 0, 0, 0) 23SAX.characters(my title, 8) 24SAX.endElementNs(title, NULL, NULL) 25SAX.characters( 26, 1) 27SAX.characters( 28 This text is about XML, the, 31) 29SAX.getEntity(xml) 30SAX.characters(Extensible Markup Language, 26) 31SAX.characters( and this is an embedded , 25) 32SAX.startElementNs(IMG, NULL, NULL, 0, 1, 0, src='imag...', 5) 33SAX.endElementNs(IMG, NULL, NULL) 34SAX.characters( 35, 1) 36SAX.endElementNs(EXAMPLE, NULL, NULL) 37SAX.endDocument() 38