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