This gives you a view of what the XML hierarchy looks like. It's
intended to help you deduce the correct DTD, or just to understand how
the data is arranged. It shows you the kinds of leaf tags you have and
the kinds of paths through the XML tree necessary to get to each
leaf.
- Parameters:
elt (an xml.etree.cElementTree Element) - an XML tree structure
- Returns: iterator(list(str))
- a sequence of embedding lists. Each embedding list contains the
tags you go through en route to a leaf node. So,
<a> <b> <c>x</c> </b>
</a> would yield a list ['a', 'b', 'c']
and <a> <b>x</b> <c> y </c>
</a> would yield ['a', 'b'] and
['a', 'c'] .
|