Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 1 | SAX.setDocumentLocator() |
| 2 | SAX.startDocument() |
| 3 | SAX.internalSubset(EXAMPLE, (null), example.dtd) |
Daniel Veillard | 97fea18 | 1999-06-26 23:07:37 +0000 | [diff] [blame] | 4 | SAX.resolveEntity( , example.dtd) |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 5 | SAX.entityDecl(xml, 1, (null), (null), Extensible Markup Language) |
| 6 | SAX.getEntity(xml) |
| 7 | SAX.entityDecl(title, 2, -//MY-TITLE//FR, title.xml, (null)) |
| 8 | SAX.entityDecl(image, 3, (null), img.gif, GIF) |
| 9 | SAX.startElement(EXAMPLE) |
| 10 | SAX.characters( |
| 11 | &title; |
| 12 | This text is abou, 3) |
| 13 | SAX.getEntity(title) |
| 14 | SAX.isStandalone() |
| 15 | SAX.hasInternalSubset() |
| 16 | SAX.hasExternalSubset() |
| 17 | SAX.error: Entity 'title' not defined |
| 18 | SAX.characters( |
| 19 | This text is about XML, the, 31) |
| 20 | SAX.getEntity(xml) |
| 21 | SAX.isStandalone() |
| 22 | SAX.hasInternalSubset() |
| 23 | SAX.hasExternalSubset() |
| 24 | SAX.error: Entity 'xml' not defined |
| 25 | SAX.characters( and this is an embedded <IMG , 25) |
| 26 | SAX.startElement(IMG, src='image') |
Daniel Veillard | 97fea18 | 1999-06-26 23:07:37 +0000 | [diff] [blame] | 27 | SAX.endElement(IMG) |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 28 | SAX.characters( |
| 29 | </EXAMPLE> |
| 30 | |
| 31 | , 1) |
| 32 | SAX.endElement(EXAMPLE) |
| 33 | SAX.endDocument() |