We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce6e9e9 commit 280179cCopy full SHA for 280179c
nibabel/xmlutils.py
@@ -24,11 +24,11 @@ def _to_xml_element(self):
24
""" Output should be a xml.etree.ElementTree.Element"""
25
raise NotImplementedError()
26
27
- def to_xml(self, enc='utf-8'):
+ def to_xml(self, enc='utf-8', **kwargs):
28
""" Output should be an xml string with the given encoding.
29
(default: utf-8)"""
30
ele = self._to_xml_element()
31
- return '' if ele is None else tostring(ele, enc)
+ return '' if ele is None else tostring(ele, enc, **kwargs)
32
33
34
class XmlBasedHeader(FileBasedHeader, XmlSerializable):
0 commit comments