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.entityDecl(title, 2, -//MY-TITLE//FR, title.xml, (null)) 7 SAX.unparsedEntityDecl(image, (null), img.gif, GIF) 8 SAX.externalSubset(EXAMPLE, , example.dtd) 9 SAX.startElementNs(EXAMPLE, NULL, NULL, 0, 0, 0) 10 SAX.characters( 11 , 3) 12 SAX.getEntity(title) 13 SAX.error: Entity 'title' not defined 14 SAX.reference(title) 15 SAX.characters( 16 This text is about XML, the, 31) 17 SAX.getEntity(xml) 18 SAX.characters(Extensible Markup Language, 26) 19 SAX.reference(xml) 20 SAX.characters( and this is an embedded , 25) 21 SAX.startElementNs(IMG, NULL, NULL, 0, 1, 0, src='imag...', 5) 22 SAX.endElementNs(IMG, NULL, NULL) 23 SAX.characters( 24 , 1) 25 SAX.endElementNs(EXAMPLE, NULL, NULL) 26 SAX.endDocument() 27