Module BaseDoc :: Class SheetParser
[frames] | no frames]

Class SheetParser

source code


SAX parsing class for the StyleSheetList XML file.

Instance Methods
 
__init__(self, sheetlist)
Create a SheetParser class that populates the passed StyleSheetList class.
source code
 
startElement(self, tag, attrs)
Overridden class that handles the start of a XML element
source code
 
endElement(self, tag)
Overridden class that handles the start of a XML element
source code

Inherited from xml.sax.handler.ContentHandler: characters, endDocument, endElementNS, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElementNS, startPrefixMapping

Method Details

__init__(self, sheetlist)
(Constructor)

source code 

Create a SheetParser class that populates the passed StyleSheetList class.

sheetlist - StyleSheetList instance to be loaded from the file.

Overrides: xml.sax.handler.ContentHandler.__init__

startElement(self, tag, attrs)

source code 

Overridden class that handles the start of a XML element

Overrides: xml.sax.handler.ContentHandler.startElement

endElement(self, tag)

source code 

Overridden class that handles the start of a XML element

Overrides: xml.sax.handler.ContentHandler.endElement