Ejemplo n.º 1
0
 def __init__(self,sequence):
     if not isinstance(sequence,ChildSequence):
         raise EEAttributeError(('sequence',sequence))
     Iterator.__init__(self,sequence)
     self._nodeList = self.sequence._node.xpath(sequence._element._interfaceCluster.getXPath(sequence.TAG),
                                                explicitNss=sequence._element._interfaceCluster.nss)
     self._nodeListIterator = iter(self._nodeList)
     self._lastKey = self.STARTKEY-1
     if self._nodeList:
         self._node = self._nodeList[0].parentNode
Ejemplo n.º 2
0
 def __init__(self,sequence):
     if not isinstance(sequence,ChildSequence):
         raise EEAttributeError(('sequence',sequence))
     Iterator.__init__(self,sequence)
     self._nextChild = self.sequence._node.firstChild
     self._lastKey = self.STARTKEY-1