Module XMLAutomata :: Class CXMLAutomata :: Class __CXMLAutomataParser
[hide private]
[frames] | no frames]

Class __CXMLAutomataParser
source code

        handler.EntityResolver --+    
                                 |    
            handler.DTDHandler --+    
                                 |    
        handler.ContentHandler --+    
                                 |    
          handler.ErrorHandler --+    
                                 |    
   xml.sax.saxutils.DefaultHandler --+
                                     |
                                    __CXMLAutomataParser

This Class has methods to parse an XML file writing its content in the providen automata struct.

Instance Methods [hide private]
  __init__(self, automata)
The constructor set the automata struct where to write the parsed information.
  startElement(self, name, attrs)
This method parse a single XML element and write it in the automata class.

Inherited from xml.sax.handler.EntityResolver: resolveEntity

Inherited from xml.sax.handler.DTDHandler: notationDecl, unparsedEntityDecl

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

Inherited from xml.sax.handler.ErrorHandler: error, fatalError, warning


Method Details [hide private]

__init__(self, automata)
(Constructor)

source code 
The constructor set the automata struct where to write the parsed information.
Parameters:
Returns:
void
Overrides: xml.sax.handler.ContentHandler.__init__

startElement(self, name, attrs)

source code 
This method parse a single XML element and write it in the automata class.
Parameters:
  • name (string) - the type's name of the element to parse
Returns:
void
Overrides: xml.sax.handler.ContentHandler.startElement