I want to loop trough the elements of an xml file and yield every element, unless the parent is a feature.

So in pseudocode

```
    for event, element in cElementTree.iterparse('../test.xml'):
        if parentOf_element != 'feature':
        yield element

```

How can I get the parent of the element? I know it's possible with the tree.getiterator() function, but I don't want to build the full tree because the xml files are a few gigs big.