Class SAXProcessor - A SAX driver for the scanner.

Class SAXProcessor - A SAX driver for the scanner.

SYNOPSIS

import xmlproc
class SAXProcessor(Parser, Application)
  def __init__(self)
  string __module__ = 'xmlproc'
  def doc_end(self)
  def doc_start(self)
  def fatal(self,msg)
  def handle_data(self,data,start,end)
  def handle_doctype(self,root,pubID,sysID)
  def handle_end_tag(self,name)
  def handle_pi(self,target,data)
  def handle_start_tag(self,name,attrs)
  def parse(self,pubID,sysID)
  def warning(self,msg)

  # Methods inherited by SAXProcessor from Application
  def handle_comment(self,data)
  def handle_ignorable_data(self,data,start,end)
  def resolve_ent_ref(self,entname)
  def set_entity_info(self,xmlver,enc,sddecl)

  # Methods inherited by SAXProcessor from Parser
  def setDocumentHandler(self,handler)
  def setEntityHandler(self,handler)
  def setErrorHandler(self,handler)

DESCRIPTION

def handle_comment(self,data)

Notifies the application of comments.

def handle_ignorable_data(self,data,start,end)

Notifies the application of character data that can be ignored.

def resolve_ent_ref(self,entname)

Resolves an entity reference and returns its contents. The default method only resolves the predefined entities.

def setDocumentHandler(self,handler)

Register an object to receive callbacks related to a document's logical structure.

def setEntityHandler(self,handler)

Register an object to receive callbacks related to a document's entity structure.

def setErrorHandler(self,handler)

Register an object to receive callbacks for errors and warnings.

def set_entity_info(self,xmlver,enc,sddecl)

Notifies the application of information about the current entity supplied by an XML declaration.

SEE ALSO

xmlproc

Parser

Application


Generated by HTMLFormatter at Mon Mar 16 21:55:42 1998