[XML-SIG] SAX2: LexicalHandler
Sun, 25 Apr 1999 09:21:32 -0600
> This handler is supposed to be used by applications that need
> information about lexical details in the document such as comments and
> entity boundaries. Most applications won't need this, but the DOM will
> find it useful. Support for this handler will be optional.
> This handler has the handerID http://xml.org/sax/handlers/lexical.
> class LexicalHandler:
> def xmlDecl(self, version, encoding, standalone):
> """All three parameters are strings. encoding and standalone are not
> specified on the XML declaration, their values will be None."""
I think you're missing an "If" at the beginning of the last sentence.
> def startDTD(self, root, publicID, systemID):
> """This event is reported when the DOCTYPE declaration is
> encountered. root is the name of the root element type, while the two last
> parameters are the public and system identifiers of the external
> DTD subset."""
Excellent. This would fill a huge hole in SAX -> DOM building.
> def endDTD(self):
> "This event is reported after the DTD has been parsed."
> def startEntity(self, name):
> """Reports the beginning of a new entity. If the entity is the
> external DTD subset the name will be '[dtd]'."""
> def endEntity(self, name):
> def startCDATA(self):
> def endCDATA(self):
FourThought LLC, IT Consultants
Software engineering, project management, Intranets and Extranets