Kamaelia docs : Kamaelia.XML.SimpleXMLParser.SimpleXMLParser

Kamaelia.XML.SimpleXMLParser.SimpleXMLParser

For examples and more explanations, see the module level docs.


class SimpleXMLParser(Axon.Component.component, xml.sax.handler.ContentHandler)

SimpleXMLParser() -> new SimpleXMLParser component.

Send XML data to the "inbox" inbox, and events describing documents, elements and blocks of characters (as parsed by SAX) will be sent out of the "outbox" outbox.

Inboxes

  • control : Shutdown signalling
  • inbox : Incoming XML

Outboxes

  • outbox : XML events
  • signal : Shutdown signalling

Methods defined here

checkShutdown(self)

Collects any new shutdown messages arriving at the "control" inbox, and returns "NOW" if immediate shutdown is required, or "WHENEVER" if the component can shutdown when it has finished processing pending data.

safesend(self, data, boxname)

Generator.

Sends data out of the named outbox. If the destination is full (noSpaceInBox exception) then it waits until there is space and retries until it succeeds.

If a shutdownMicroprocess message is received, returns early.

Feedback

Got a problem with the documentation? Something unclear that could be clearer? Want to help improve it? Constructive criticism is very welcome - especially if you can suggest a better rewording!

Please leave you feedback here in reply to the documentation thread in the Kamaelia blog.

-- Automatic documentation generator, 19 Oct 2008 at 14:29:09 UTC/GMT

This is a page from the Kamaelia website. You can find the original here: