Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 1 | SAX.setDocumentLocator() |
| 2 | SAX.startDocument() |
Daniel Veillard | 3991562 | 2000-10-15 10:06:55 +0000 | [diff] [blame] | 3 | SAX.internalSubset(EXAMPLE, , example.dtd) |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 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)) |
Daniel Veillard | 7d2c276 | 1999-10-11 15:09:51 +0000 | [diff] [blame] | 7 | SAX.unparsedEntityDecl(image, (null), img.gif, GIF) |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 8 | SAX.startElement(EXAMPLE) |
| 9 | SAX.characters( |
Daniel Veillard | e2d034d | 1999-07-27 19:52:06 +0000 | [diff] [blame] | 10 | , 3) |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 11 | SAX.getEntity(title) |
Daniel Veillard | 7d2c276 | 1999-10-11 15:09:51 +0000 | [diff] [blame] | 12 | SAX.warning: Entity 'title' not defined |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 13 | SAX.characters( |
| 14 | This text is about XML, the, 31) |
| 15 | SAX.getEntity(xml) |
Daniel Veillard | 7d2c276 | 1999-10-11 15:09:51 +0000 | [diff] [blame] | 16 | SAX.warning: Entity 'xml' not defined |
Daniel Veillard | e2d034d | 1999-07-27 19:52:06 +0000 | [diff] [blame] | 17 | SAX.characters( and this is an embedded , 25) |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 18 | SAX.startElement(IMG, src='image') |
Daniel Veillard | 97fea18 | 1999-06-26 23:07:37 +0000 | [diff] [blame] | 19 | SAX.endElement(IMG) |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 20 | SAX.characters( |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 21 | , 1) |
| 22 | SAX.endElement(EXAMPLE) |
| 23 | SAX.endDocument() |