Add version number to parameter meta data

This commit is contained in:
Don Gagne 2015-04-15 14:53:06 -07:00
parent 05c351183f
commit 2fa0c333cb
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,10 @@ class XMLOutput():
impl = getDOMImplementation()
xml_document = impl.createDocument(None, "parameters", None)
xml_parameters = xml_document.documentElement
xml_version = xml_document.createElement("version")
xml_parameters.appendChild(xml_version)
xml_version_value = xml_document.createTextNode("1")
xml_version.appendChild(xml_version_value)
for group in groups:
xml_group = xml_document.createElement("group")
xml_group.setAttribute("name", group.GetName())