Module feed_handler :: Class FeedHandler
[show private | hide private]
[frames | no frames]

Class FeedHandler

ContentHandler --+
                 |
                FeedHandler


Extracts data from feeds, in response to SAX events
Method Summary
  __init__(self)
Initialize feed object, interpreter state and content
  characters(self, text)
Accumulates text (called by SAX parser)
  cleanup_text(self, text)
Strips material that won't look good in plain text
  endElementNS(self, name, qname)
Collects element content, switches state as appropriate (called by SAX parser)
  is_content_element(self, localname)
Checks if element may contain item/entry content
  process_tags(self, string)
Turns <br/> into then removes all <tags>
  startElementNS(self, name, qname, attributes)
Identifies nature of element in feed (called by SAX parser)
  trim(self, text)
Trim string length neatly
    Inherited from ContentHandler
  endDocument(self)
Receive notification of the end of a document.
  endElement(self, name)
Signals the end of an element in non-namespace mode.
  endPrefixMapping(self, prefix)
End the scope of a prefix-URI mapping.
  ignorableWhitespace(self, whitespace)
Receive notification of ignorable whitespace in element content.
  processingInstruction(self, target, data)
Receive notification of a processing instruction.
  setDocumentLocator(self, locator)
Called by the parser to give the application a locator for locating the origin of document events.
  skippedEntity(self, name)
Receive notification of a skipped entity.
  startDocument(self)
Receive notification of the beginning of a document.
  startElement(self, name, attrs)
Signals the start of an element in non-namespace mode.
  startPrefixMapping(self, prefix, uri)
Begin the scope of a prefix-URI Namespace mapping.

Method Details

__init__(self)
(Constructor)

Initialize feed object, interpreter state and content
Overrides:
_xmlplus.sax.handler.ContentHandler.__init__

characters(self, text)

Accumulates text (called by SAX parser)
Overrides:
_xmlplus.sax.handler.ContentHandler.characters

cleanup_text(self, text)

Strips material that won't look good in plain text

endElementNS(self, name, qname)

Collects element content, switches state as appropriate (called by SAX parser)
Overrides:
_xmlplus.sax.handler.ContentHandler.endElementNS

is_content_element(self, localname)

Checks if element may contain item/entry content

process_tags(self, string)

Turns <br/> into then removes all <tags>

startElementNS(self, name, qname, attributes)

Identifies nature of element in feed (called by SAX parser)
Overrides:
_xmlplus.sax.handler.ContentHandler.startElementNS

trim(self, text)

Trim string length neatly

Generated by Epydoc 2.1 on Thu May 27 10:33:26 2004 http://epydoc.sf.net