Back to index

python3.2  3.2.2
Classes | Functions | Variables
xml.dom.pulldom Namespace Reference

Classes

class  PullDOM
class  ErrorHandler
class  DOMEventStream
class  SAX2DOM

Functions

def parse
def parseString

Variables

string START_ELEMENT = "START_ELEMENT"
string END_ELEMENT = "END_ELEMENT"
string COMMENT = "COMMENT"
string START_DOCUMENT = "START_DOCUMENT"
string END_DOCUMENT = "END_DOCUMENT"
string PROCESSING_INSTRUCTION = "PROCESSING_INSTRUCTION"
string IGNORABLE_WHITESPACE = "IGNORABLE_WHITESPACE"
string CHARACTERS = "CHARACTERS"
tuple default_bufsize = (2 ** 14)

Function Documentation

def xml.dom.pulldom.parse (   stream_or_string,
  parser = None,
  bufsize = None 
)

Definition at line 325 of file pulldom.py.

00325 
00326 def parse(stream_or_string, parser=None, bufsize=None):
00327     if bufsize is None:
00328         bufsize = default_bufsize
00329     if isinstance(stream_or_string, str):
00330         stream = open(stream_or_string, 'rb')
00331     else:
00332         stream = stream_or_string
00333     if not parser:
00334         parser = xml.sax.make_parser()
00335     return DOMEventStream(stream, parser, bufsize)

Here is the call graph for this function:

def xml.dom.pulldom.parseString (   string,
  parser = None 
)

Definition at line 336 of file pulldom.py.

00336 
00337 def parseString(string, parser=None):
00338     try:
00339         from io import StringIO
00340     except ImportError:
00341         from io import StringIO
00342 
00343     bufsize = len(string)
00344     buf = StringIO(string)
00345     if not parser:
00346         parser = xml.sax.make_parser()
00347     return DOMEventStream(buf, parser, bufsize)

Here is the call graph for this function:


Variable Documentation

Definition at line 12 of file pulldom.py.

Definition at line 7 of file pulldom.py.

Definition at line 323 of file pulldom.py.

Definition at line 9 of file pulldom.py.

Definition at line 6 of file pulldom.py.

string xml.dom.pulldom.IGNORABLE_WHITESPACE = "IGNORABLE_WHITESPACE"

Definition at line 11 of file pulldom.py.

string xml.dom.pulldom.PROCESSING_INSTRUCTION = "PROCESSING_INSTRUCTION"

Definition at line 10 of file pulldom.py.

Definition at line 8 of file pulldom.py.

Definition at line 5 of file pulldom.py.