Class XMLRecordIterator
source code
- Known Subclasses:
-
Base class for building iterators for record style XML formats.
It is assumed that all information for one record can be found within
a record element or above. Two types of methods are called when the start
tag of an element is reached. To receive only the attributes of an
element before its end tag is reached implement _attr_TAGNAME. To get an
element and its children as a DOM tree implement _elem_TAGNAME.
Everything that is part of the DOM tree will not trigger any further
method calls.
|
__init__(self,
handle,
recordTag,
namespace=None)
Creating the object and initializing the XML parser. |
source code
|
|
|
|
|
_attributes(self,
node)
Return the attributes of a DOM node as dictionary. |
source code
|
|
Iterate over the records in the XML file. Returns the last parsed
record.
|