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

Class XMLRecordIterator

source code

object --+
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)
Create the object and initializing the XML parser.
source code
Iterate over the records in the XML file.
source code
_attributes(self, node)
Return the attributes of a DOM node as dictionary (PRIVATE).
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, handle, recordTag, namespace=None)

source code 
Create the object and initializing the XML parser.
Overrides: object.__init__