Closed rn4n closed 7 years ago
Solved using doc.asis()
.
doc, tag, text = Doc().tagtext()
doc.asis('<?xml version="1.0" encoding="windows-1252" standalone="no"?>')
with tag('generated-tests'):
for key, value in market.items():
doc.stag('test', testname=key, testoutput=value)
return indent(doc.getvalue())
How can I set the xml version and encoding of the document? For example, I need to put this on the first line:
My code: