diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-12-01 12:22:12 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-12-01 12:22:12 +0000 |
| commit | 0c47a825bae96f0737f6d81a78b2138ababce646 (patch) | |
| tree | 28d68ddae77ea4481bc62b4651141335916e20ed /mammoth/docx/xmlparser.py | |
| parent | d5acaf1071564a9997a330315ea99cdc1017bae7 (diff) | |
Add parsing for numbering.xml
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): |
