1SAX.setDocumentLocator()
2SAX.startDocument()
3SAX.internalSubset(doc, , )
4SAX.entityDecl(YN, 1, (null), (null), "Yes")
5SAX.getEntity(YN)
6SAX.entityDecl(WhatHeSaid, 1, (null), (null), He said &YN;)
7SAX.getEntity(WhatHeSaid)
8SAX.externalSubset(doc, , )
9SAX.startElementNs(doc, NULL, NULL, 0, 0, 0)
10SAX.getEntity(WhatHeSaid)
11SAX.characters(He said , 8)
12SAX.getEntity(YN)
13SAX.characters("Yes", 5)
14SAX.endElementNs(doc, NULL, NULL)
15SAX.endDocument()
16