March 2003
Intermediate to advanced
656 pages
39h 30m
English
parseString
parseString(string,parser=None)
Like parse, except that
string is the XML document in string form.
xml.dom.pulldom also supplies class
DOMEventStream, an iterator whose items are pairs
(
event,node
),
where event is a string giving the event
type, and node is an instance of an
appropriate subclass of class Node. The possible
values for event are constant uppercase
strings that are also available as constant attributes of module
xml.dom.pulldom with the same names:
CHARACTERS, COMMENT,
END_DOCUMENT, END_ELEMENT,
IGNORABLE_WHITESPACE,
PROCESSING_INSTRUCTION,
START_DOCUMENT, and
START_ELEMENT.
An instance d of class
DOMEventStream supplies one other important
method.