children

returns child element(s).

Source


def children(self):
    ret = pyNodeList()
    for child in self._children:
        if child.name() != 'comment':
            ret.append(child)
    if len(ret) == 1: return ret[0]
    else: return ret