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.startElement(EXAMPLE) 10SAX.characters( 11 , 3) 12SAX.getEntity(title) 13SAX.error: Entity 'title' not defined 14SAX.reference(title) 15SAX.characters( 16 This text is about XML, the, 31) 17SAX.getEntity(xml) 18SAX.characters(Extensible Markup Language, 26) 19SAX.reference(xml) 20SAX.characters( and this is an embedded , 25) 21SAX.startElement(IMG, src='image') 22SAX.endElement(IMG) 23SAX.characters( 24, 1) 25SAX.endElement(EXAMPLE) 26SAX.endDocument() 27