Return list containing the direct children of *element* having *child_tagname*.
(element, child_tagname)
| 38 | return matching_children[0] if len(matching_children) else None |
| 39 | |
| 40 | def _child_list(element, child_tagname): |
| 41 | """ |
| 42 | Return list containing the direct children of *element* having |
| 43 | *child_tagname*. |
| 44 | """ |
| 45 | xpath = './%s' % child_tagname |
| 46 | return element.xpath(xpath, namespaces=nsmap) |
| 47 | |
| 48 | def _get_child_or_append(element, tag): |
| 49 | child = _child(element, tag) |
no test coverage detected
searching dependent graphs…