Package biana :: Package BianaParser :: Module psi_MiXMLParser :: Class Psi_MiHandler
[hide private]
[frames] | no frames]

Class Psi_MiHandler

source code


Class to handle content in PSI-MI XML files

Instance Methods [hide private]
 
__init__(self, flagVerbose) source code
 
_printObjectStack(self) source code
 
_getAttribute(self, attrs, nameAttribute, flagReportInExistance=False) source code
 
startDocument(self)
Receive notification of the beginning of a document.
source code
 
startElement(self, name, attrs)
Signals the start of an element in non-namespace mode.
source code
 
endElement(self, name)
Signals the end of an element in non-namespace mode.
source code
 
characters(self, content)
Receive notification of character data.
source code
 
ignorableWhitespace(self, content)
Receive notification of ignorable whitespace in element content.
source code
 
processingInstruction(self, target, data)
Receive notification of a processing instruction.
source code
 
skippedEntity(self, name)
Receive notification of a skipped entity.
source code

Inherited from xml.sax.handler.ContentHandler: endDocument, endElementNS, endPrefixMapping, setDocumentLocator, startElementNS, startPrefixMapping

Method Details [hide private]

__init__(self, flagVerbose)
(Constructor)

source code 
Overrides: xml.sax.handler.ContentHandler.__init__

startDocument(self)

source code 

Receive notification of the beginning of a document.

The SAX parser will invoke this method only once, before any other methods in this interface or in DTDHandler (except for setDocumentLocator).

Overrides: xml.sax.handler.ContentHandler.startDocument
(inherited documentation)

startElement(self, name, attrs)

source code 

Signals the start of an element in non-namespace mode.

The name parameter contains the raw XML 1.0 name of the element type as a string and the attrs parameter holds an instance of the Attributes class containing the attributes of the element.

Overrides: xml.sax.handler.ContentHandler.startElement
(inherited documentation)

endElement(self, name)

source code 

Signals the end of an element in non-namespace mode.

The name parameter contains the name of the element type, just as with the startElement event.

Overrides: xml.sax.handler.ContentHandler.endElement
(inherited documentation)

characters(self, content)

source code 

Receive notification of character data.

The Parser will call this method to report each chunk of character data. SAX parsers may return all contiguous character data in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity so that the Locator provides useful information.

Overrides: xml.sax.handler.ContentHandler.characters
(inherited documentation)

ignorableWhitespace(self, content)

source code 

Receive notification of ignorable whitespace in element content.

Validating Parsers must use this method to report each chunk of ignorable whitespace (see the W3C XML 1.0 recommendation, section 2.10): non-validating parsers may also use this method if they are capable of parsing and using content models.

SAX parsers may return all contiguous whitespace in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity, so that the Locator provides useful information.

Overrides: xml.sax.handler.ContentHandler.ignorableWhitespace
(inherited documentation)

processingInstruction(self, target, data)

source code 

Receive notification of a processing instruction.

The Parser will invoke this method once for each processing instruction found: note that processing instructions may occur before or after the main document element.

A SAX parser should never report an XML declaration (XML 1.0, section 2.8) or a text declaration (XML 1.0, section 4.3.1) using this method.

Overrides: xml.sax.handler.ContentHandler.processingInstruction
(inherited documentation)

skippedEntity(self, name)

source code 

Receive notification of a skipped entity.

The Parser will invoke this method once for each entity skipped. Non-validating processors may skip entities if they have not seen the declarations (because, for example, the entity was declared in an external DTD subset). All processors may skip external entities, depending on the values of the http://xml.org/sax/features/external-general-entities and the http://xml.org/sax/features/external-parameter-entities properties.

Overrides: xml.sax.handler.ContentHandler.skippedEntity
(inherited documentation)