Package Martel :: Module Parser :: Class Parser
[show private | hide private]
[frames | no frames]

Class Parser

XMLReader --+
            |
           Parser


Parse the input data all in memory
Method Summary
  __init__(self, tagtable, (want_groupref_names, debug_level, attrlookup))
  __str__(self)
  close(self)
  copy(self)
  parse(self, source)
parse using the URL or file handle
  parseFile(self, fileobj)
parse using the input file object
  parseString(self, s)
parse using the given string
    Inherited from XMLReader
  getContentHandler(self)
Returns the current ContentHandler.
  getDTDHandler(self)
Returns the current DTD handler.
  getEntityResolver(self)
Returns the current EntityResolver.
  getErrorHandler(self)
Returns the current ErrorHandler.
  getFeature(self, name)
Looks up and returns the state of a SAX2 feature.
  getProperty(self, name)
Looks up and returns the value of a SAX2 property.
  setContentHandler(self, handler)
Registers a new object to receive document content events.
  setDTDHandler(self, handler)
Register an object to receive basic DTD-related events.
  setEntityResolver(self, resolver)
Register an object to resolve external entities.
  setErrorHandler(self, handler)
Register an object to receive error-message events.
  setFeature(self, name, state)
Sets the state of a SAX2 feature.
  setLocale(self, locale)
Allow an application to set the locale for errors and warnings.
  setProperty(self, name, value)
Sets the value of a SAX2 property.

Method Details

parse(self, source)

parse using the URL or file handle
Overrides:
_xmlplus.sax.xmlreader.XMLReader.parse

parseFile(self, fileobj)

parse using the input file object

XXX will be removed with the switch to Python 2.0, where parse() takes an 'InputSource'

parseString(self, s)

parse using the given string

XXX will be removed with the switch to Python 2.0, where parse() takes an 'InputSource'

Generated by Epydoc 2.1 on Sat Jul 16 15:48:42 2005 http://epydoc.sf.net