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( |
Daniel Veillard | e2d034d | 1999-07-27 19:52:06 +0000 | [diff] [blame] | 11 | , 3) |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 12 | SAX.getEntity(title) |
| 13 | SAX.isStandalone() |
| 14 | SAX.hasInternalSubset() |
| 15 | SAX.hasExternalSubset() |
| 16 | SAX.error: Entity 'title' not defined |
| 17 | SAX.characters( |
| 18 | This text is about XML, the, 31) |
| 19 | SAX.getEntity(xml) |
| 20 | SAX.isStandalone() |
| 21 | SAX.hasInternalSubset() |
| 22 | SAX.hasExternalSubset() |
| 23 | SAX.error: Entity 'xml' not defined |
Daniel Veillard | e2d034d | 1999-07-27 19:52:06 +0000 | [diff] [blame] | 24 | SAX.characters( and this is an embedded , 25) |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 25 | SAX.startElement(IMG, src='image') |
Daniel Veillard | 97fea18 | 1999-06-26 23:07:37 +0000 | [diff] [blame] | 26 | SAX.endElement(IMG) |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 27 | SAX.characters( |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 28 | , 1) |
| 29 | SAX.endElement(EXAMPLE) |
| 30 | SAX.endDocument() |