Trees | Index | Help |
---|
Package Bio :: Package Blast :: Module NCBIXML :: Class _XMLparser |
|
ContentHandler
--+
|
_XMLparser
BlastParser
Generic SAX Parser
Just a very basic SAX parser.
Redefine the methods startElement, characters and endElement.Method Summary | |
---|---|
Constructor | |
Removes 'dangerous' from tag names | |
Found some text | |
Found XML end tag | |
Found XML start tag | |
Inherited from ContentHandler | |
Receive notification of the end of a document. | |
Signals the end of an element in namespace mode. | |
End the scope of a prefix-URI mapping. | |
Receive notification of ignorable whitespace in element content. | |
Receive notification of a processing instruction. | |
Called by the parser to give the application a locator for locating the origin of document events. | |
Receive notification of a skipped entity. | |
Receive notification of the beginning of a document. | |
Signals the start of an element in namespace mode. | |
Begin the scope of a prefix-URI Namespace mapping. |
Method Details |
---|
__init__(self,
debug=0)
|
_secure_name(self, name)Removes 'dangerous' from tag names name -- name to be 'secured' |
characters(self, ch)Found some text ch -- characters read
|
endElement(self, name)Found XML end tag name -- tag name
|
startElement(self, name, attr)Found XML start tag No real need of attr, BLAST DTD doesn't use them name -- name of the tag attr -- tag attributes
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Mon Aug 27 16:43:45 2007 | http://epydoc.sf.net |