diff options
Diffstat (limited to 'mammoth/docx/xmlparser.py')
| -rw-r--r-- | mammoth/docx/xmlparser.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mammoth/docx/xmlparser.py b/mammoth/docx/xmlparser.py index d58ea75..efeafcf 100644 --- a/mammoth/docx/xmlparser.py +++ b/mammoth/docx/xmlparser.py @@ -9,6 +9,9 @@ class XmlElement(XmlElementBase): if child.name == name: return child return _null_xml_element + + def find_children(self, name): + return filter(lambda child: child.name == name, self.children) class NullXmlElement(object): |
