Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VIGNET Pierre
cadbiom
Commits
56fdb768
Commit
56fdb768
authored
Jan 18, 2020
by
VIGNET Pierre
Browse files
[lib] XML models: add preamble with encoding during the export
parent
633df29d
Changes
1
Show whitespace changes
Inline
Side-by-side
library/cadbiom/models/guard_transitions/translators/chart_xml.py
View file @
56fdb768
...
...
@@ -240,9 +240,10 @@ class XmlVisitor:
const
.
text
=
tnode
.
model
.
constraints
xmodel
.
append
(
const
)
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
):
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment