Package Bio :: Package SeqIO :: Module SeqXmlIO :: Class XMLRecordIterator
[hide private]
[frames] | no frames]

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.

Instance Methods [hide private]
 
__init__(self, handle, recordTag, namespace=None)
Creating the object and initializing the XML parser.
source code
 
__iter__(self)
Iterate over the records in the XML file.
source code
 
_attributes(self, node)
Return the attributes of a DOM node as dictionary.
source code
Method Details [hide private]

__iter__(self)

source code 
Iterate over the records in the XML file.
Returns the last parsed record.