Cheshire3 Object Model: Class Parser

Module baseObjects :: Class Parser

Class Parser
source code

Object Tree:
           object --+    
                    |    
configParser.C3Object --+
                        |
                       Parser
Known Subclasses:
parser.BaseParser, parser.LxmlRelaxNGParser, parser.LxmlSchemaParser

Normally a simple wrapper around an XML parser, these objects can be viewed as Record Factories. They take a Document containing some XML and produce the equivalent Record.

Instance Methods

process_document(self, session, doc)
Take a Document, parse it and return a Record object.

Inherited from configParser.C3Object: __init__, auth_function, get_config, get_default, get_object, get_path, get_setting, log_function, unauth_function, unlog_function

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Class Variables

Inherited from configParser.C3Object: configStore, defaults, functionLogger, id, name, objectType, objects, parent, paths, permissionHandlers, settings, subConfigs, unresolvedObjects

Inherited from object: __class__


Method Details

process_document(self, session, doc)

source code 
Take a Document, parse it and return a Record object.