Class Application - A default application class that receives all events, but does nothing.

Class Application - A default application class that receives all events, but does nothing.

SYNOPSIS

import xmlproc
class Application
  def __init__(self,parser)
  string __module__ = 'xmlproc'
  def doc_end(self)
  def doc_start(self)
  def fatal(self,msg)
  def handle_comment(self,data)
  def handle_data(self,data,start,end)
  def handle_doctype(self,root,pubID,sysID)
  def handle_end_tag(self,name)
  def handle_ignorable_data(self,data,start,end)
  def handle_pi(self,target,data)
  def handle_start_tag(self,name,attrs)
  def resolve_ent_ref(self,entname)
  def set_entity_info(self,xmlver,enc,sddecl)
  def warning(self,msg)

DESCRIPTION

def doc_end(self)

Notifies the application of the end of the document.

def doc_start(self)

Notifies the application of the start of the document.

def fatal(self,msg)

Handles a fatal error message.

def handle_comment(self,data)

Notifies the application of comments.

def handle_data(self,data,start,end)

Notifies the application of character data.

def handle_doctype(self,root,pubID,sysID)

Notifies the application of the document type declaration.

def handle_end_tag(self,name)

Notifies the application of end tags (and empty element tags).

def handle_ignorable_data(self,data,start,end)

Notifies the application of character data that can be ignored.

def handle_pi(self,target,data)

Notifies the application of processing instructions.

def handle_start_tag(self,name,attrs)

Notifies the application of start tags (and empty element tags).

def resolve_ent_ref(self,entname)

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

def set_entity_info(self,xmlver,enc,sddecl)

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

def warning(self,msg)

Handles a non-fatal error message.

SEE ALSO

xmlproc


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