We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76c6816 commit de7768aCopy full SHA for de7768a
1 file changed
odml/tools/odmlparser.py
@@ -48,6 +48,10 @@ def write_file(self, odml_document, filename):
48
raise ParserException(msg)
49
50
with open(filename, 'w') as file:
51
+ # Add XML header to support odML stylesheets.
52
+ if self.parser == 'XML':
53
+ file.write(xmlparser.XMLWriter.header)
54
+
55
file.write(self.to_string(odml_document))
56
57
def to_string(self, odml_document):
0 commit comments