Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Private Attributes | Static Private Attributes
xml.dom.expatbuilder.Skipper Class Reference
Inheritance diagram for xml.dom.expatbuilder.Skipper:
Inheritance graph
[legend]
Collaboration diagram for xml.dom.expatbuilder.Skipper:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def start_element_handler
def end_element_handler

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Private Attributes

 _level
 _builder

Static Private Attributes

tuple __slots__ = ()

Detailed Description

Definition at line 561 of file expatbuilder.py.


Member Function Documentation

Definition at line 570 of file expatbuilder.py.

00570 
00571     def end_element_handler(self, *args):
00572         if self._level == 0:
00573             # We're popping back out of the node we're skipping, so we
00574             # shouldn't need to do anything but reset the handlers.
00575             self._builder._parser.StartElementHandler = self._old_start
00576             self._builder._parser.EndElementHandler = self._old_end
00577             self._builder = None
00578         else:
00579             self._level = self._level - 1
00580             self._old_end(*args)
00581 
00582 
00583 # framework document used by the fragment builder.
00584 # Takes a string for the doctype, subset string, and namespace attrs string.

Definition at line 564 of file expatbuilder.py.

00564 
00565     def start_element_handler(self, *args):
00566         node = self._builder.curNode
00567         self._old_start(*args)
00568         if self._builder.curNode is not node:
00569             self._level = self._level + 1


Member Data Documentation

tuple xml.dom.expatbuilder.Skipper.__slots__ = () [static, private]

Reimplemented from xml.dom.expatbuilder.FilterCrutch.

Definition at line 562 of file expatbuilder.py.

Reimplemented from xml.dom.expatbuilder.FilterCrutch.

Definition at line 576 of file expatbuilder.py.

Reimplemented from xml.dom.expatbuilder.FilterCrutch.

Definition at line 568 of file expatbuilder.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.


The documentation for this class was generated from the following file: