add xml header with version and encoding when generating xml

This commit is contained in:
Timotei Dolean 2010-08-06 21:39:13 +00:00
parent cb5c761715
commit 4ae7962271

View file

@ -672,6 +672,7 @@ code = <<
jsonify(p.root, True)
print
elif options.to_xml:
print '<?xml version="1.0" encoding="UTF-8" ?>'
print '<root>'
xmlify(p.root, True, 1)
print '</root>';