1SAX.setDocumentLocator() 2SAX.startDocument() 3SAX.internalSubset(HTML, -//W3C//DTD HTML 4.0 Transitional//EN, http://www.w3.org/TR/REC-html40/strict.dtd) 4SAX.startElement(html) 5SAX.characters( 6, 1) 7SAX.startElement(head) 8SAX.characters( 9, 1) 10SAX.startElement(title) 11SAX.characters(gnome-xml push mode bug, 23) 12SAX.endElement(title) 13SAX.characters( 14, 1) 15SAX.endElement(head) 16SAX.characters( 17, 1) 18SAX.startElement(body) 19SAX.characters( 20 21, 2) 22SAX.startElement(table, border='4') 23SAX.characters( 24 , 3) 25SAX.startElement(tr) 26SAX.characters( 27 , 5) 28SAX.startElement(td, bgcolor='white') 29SAX.characters( 30 Foo1 31 , 8) 32SAX.startElement(table, border='4') 33SAX.characters( 34 , 4) 35SAX.startElement(tr) 36SAX.characters( 37 , 6) 38SAX.startElement(td) 39SAX.characters(Foo2, 4) 40SAX.startElement(p) 41SAX.endElement(p) 42SAX.startElement(p) 43SAX.endElement(p) 44SAX.endElement(td) 45SAX.endElement(tr) 46SAX.endElement(table) 47SAX.characters( 48 , 5) 49SAX.endElement(td) 50SAX.characters( 51 , 5) 52SAX.startElement(td, bgcolor='blue') 53SAX.characters(Foo3, 4) 54SAX.endElement(td) 55SAX.characters( 56 , 4) 57SAX.endElement(tr) 58SAX.characters( 59 , 3) 60SAX.endElement(table) 61SAX.characters( 62 , 3) 63SAX.endElement(body) 64SAX.characters( 65, 1) 66SAX.endElement(html) 67SAX.characters( 68, 3) 69SAX.endDocument() 70