pyre.xml.Document

Module Contents

class pyre.xml.Document.Document

Bases: pyre.xml.Node.Node

Base class for the custom processing of XML parsing events. You must derive from this class and declare the element descriptors that correspond to the tags in your document. Instances of your derived class will form the interface between the XML parser and the application specific data structure being decorated with the contents of the XML stream.

This object is the anchor for the handler of the top element handler that is reposinsible for the root of the XML document.

The DTD metaclass scans through the class record, identifies the element declarations and builds the DTF for the document

tag = document
root
elements = []
dtd
dom
_pyre_nodeIndex
initialize(self, locator)

Handler for the event generated when parsing the XML document has just begun

finalize(self, locator)

Handler for the event generated when parsing of the XML document is finished