Table of Contents

Module: xyap Zope-2.2.1-src/lib/python/Shared/DC/xml/xyap.py

Yet another XML parser

This is meant to be very simple:

  • stack based

  • The parser has a table of start handlers and end handlers.

  • start tag handlers are called with the parser instance, tag names and attributes. The result is placed on the stack. The default handler places a special object on the stack (uh, a list, with the tag name and attributes as the first two elements. ;)

  • end tag handlers are called with the object on the parser, the tag name, and top of the stack right after it has been removed. The result is appended to the object on the top of the stack.

Note that namespace attributes should recieve some special handling. Oh well.

Imported modules   
from pickle import *
import string
import xmllib
Functions   
name
struct
test
tuplef
  name 
name (
        self,
        tag,
        data,
        join=string.join,
        strip=string.strip,
        )

  struct 
struct (
        self,
        tag,
        data,
        )

  test 
test ()

  tuplef 
tuplef (
        self,
        tag,
        data,
        )

Classes   
NoBlanks
XYap
xmlrpc
xyap

Table of Contents

This document was automatically generated on Mon Sep 4 07:33:06 2000 by HappyDoc version r0_6