Commit 56fdb768 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[lib] XML models: add preamble with encoding during the export

parent 633df29d
......@@ -240,9 +240,10 @@ class XmlVisitor:
const.text = tnode.model.constraints
self.xml = etree.tostring(xmodel, pretty_print=True)
# print (etree.tostring(xmodel,pretty_print=True))
# Add preamble
self.xml = '<?xml version = "1.0" encoding="ASCII" standalone="yes" ?>\n'
self.xml += etree.tostring(xmodel, pretty_print=True)
# print(etree.tostring(xmodel,pretty_print=True))
def visit_ctransition(self, trans):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment