Package gozerbot :: Package contrib :: Module feedparser :: Class _StrictFeedParser
[hide private]
[frames] | no frames]

Class _StrictFeedParser

source code

              _FeedParserMixin --+
                                 |
xml.sax.handler.ContentHandler --+
                                 |
                                _StrictFeedParser

Instance Methods [hide private]
 
__init__(self, baseuri, baselang, encoding) source code
 
startPrefixMapping(self, prefix, uri)
Begin the scope of a prefix-URI Namespace mapping.
source code
 
startElementNS(self, name, qname, attrs)
Signals the start of an element in namespace mode.
source code
 
characters(self, text)
Receive notification of character data.
source code
 
endElementNS(self, name, qname)
Signals the end of an element in namespace mode.
source code
 
error(self, exc) source code
 
fatalError(self, exc) source code

Inherited from _FeedParserMixin: decodeEntities, handle_charref, handle_comment, handle_data, handle_decl, handle_entityref, handle_pi, mapContentType, parse_declaration, pop, popContent, push, pushContent, resolveURI, trackNamespace, unknown_endtag, unknown_starttag

Inherited from _FeedParserMixin (private): _addTag, _cdf_common, _end_abstract, _end_author, _end_body, _end_category, _end_channel, _end_content, _end_content_encoded, _end_contributor, _end_copyright, _end_created, _end_creativecommons_license, _end_dc_author, _end_dc_contributor, _end_dc_creator, _end_dc_date, _end_dc_language, _end_dc_publisher, _end_dc_rights, _end_dc_subject, _end_dc_title, _end_dcterms_created, _end_dcterms_issued, _end_dcterms_modified, _end_description, _end_email, _end_entry, _end_expirationdate, _end_feed, _end_feedburner_browserfriendly, _end_fullitem, _end_generator, _end_guid, _end_height, _end_homepage, _end_image, _end_info, _end_issued, _end_item, _end_itunes_author, _end_itunes_block, _end_itunes_category, _end_itunes_email, _end_itunes_explicit, _end_itunes_keywords, _end_itunes_name, _end_itunes_owner, _end_itunes_subtitle, _end_itunes_summary, _end_keywords, _end_language, _end_link, _end_managingeditor, _end_media_title, _end_modified, _end_name, _end_prodlink, _end_producturl, _end_pubdate, _end_published, _end_rights, _end_source, _end_subtitle, _end_summary, _end_tagline, _end_textInput, _end_textinput, _end_title, _end_updated, _end_uri, _end_url, _end_webmaster, _end_width, _end_xhtml_body, _getAttribute, _getContext, _isBase64, _itsAnHrefDamnIt, _mapToStandardPrefix, _save, _save_author, _save_contributor, _start_abstract, _start_admin_errorreportsto, _start_admin_generatoragent, _start_author, _start_body, _start_category, _start_cc_license, _start_channel, _start_cloud, _start_content, _start_content_encoded, _start_contributor, _start_copyright, _start_created, _start_creativecommons_license, _start_dc_author, _start_dc_contributor, _start_dc_creator, _start_dc_date, _start_dc_language, _start_dc_publisher, _start_dc_rights, _start_dc_subject, _start_dc_title, _start_dcterms_created, _start_dcterms_issued, _start_dcterms_modified, _start_description, _start_dlhottitles, _start_email, _start_enclosure, _start_entry, _start_expirationdate, _start_feed, _start_feedburner_browserfriendly, _start_feedinfo, _start_fullitem, _start_generator, _start_guid, _start_height, _start_homepage, _start_image, _start_info, _start_issued, _start_item, _start_itunes_author, _start_itunes_category, _start_itunes_email, _start_itunes_image, _start_itunes_link, _start_itunes_name, _start_itunes_owner, _start_itunes_subtitle, _start_itunes_summary, _start_keywords, _start_language, _start_link, _start_managingeditor, _start_media_title, _start_modified, _start_name, _start_prodlink, _start_product, _start_producturl, _start_pubdate, _start_published, _start_rights, _start_rss, _start_source, _start_subtitle, _start_summary, _start_tagline, _start_textInput, _start_textinput, _start_title, _start_updated, _start_uri, _start_url, _start_webmaster, _start_width, _start_xhtml_body, _sync_author_detail

Inherited from xml.sax.handler.ContentHandler: endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement

Class Variables [hide private]

Inherited from _FeedParserMixin: can_be_relative_uri, can_contain_dangerous_markup, can_contain_relative_uris, html_types, namespaces

Inherited from _FeedParserMixin (private): _matchnamespaces

Method Details [hide private]

__init__(self, baseuri, baselang, encoding)
(Constructor)

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

startPrefixMapping(self, prefix, uri)

source code 

Begin the scope of a prefix-URI Namespace mapping.

The information from this event is not necessary for normal Namespace processing: the SAX XML reader will automatically replace prefixes for element and attribute names when the http://xml.org/sax/features/namespaces feature is true (the default).

There are cases, however, when applications need to use prefixes in character data or in attribute values, where they cannot safely be expanded automatically; the start/endPrefixMapping event supplies the information to the application to expand prefixes in those contexts itself, if necessary.

Note that start/endPrefixMapping events are not guaranteed to be properly nested relative to each-other: all startPrefixMapping events will occur before the corresponding startElement event, and all endPrefixMapping events will occur after the corresponding endElement event, but their order is not guaranteed.

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

startElementNS(self, name, qname, attrs)

source code 

Signals the start of an element in namespace mode.

The name parameter contains the name of the element type as a (uri, localname) tuple, the qname parameter the raw XML 1.0 name used in the source document, and the attrs parameter holds an instance of the Attributes class containing the attributes of the element.

The uri part of the name tuple is None for elements which have no namespace.

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

characters(self, text)

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)

endElementNS(self, name, qname)

source code 

Signals the end of an element in namespace mode.

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

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