Add name element to XML
This commit is contained in:
parent
7103a296ba
commit
9d9cacb83d
1 changed files with 3 additions and 0 deletions
|
@ -53,6 +53,9 @@ class System:
|
|||
"""Convert the current system into an XML element"""
|
||||
system = ElementTree.Element("lsystem")
|
||||
|
||||
base = ElementTree.SubElement(system, "name")
|
||||
base.text = self.name
|
||||
|
||||
base = ElementTree.SubElement(system, "base")
|
||||
base.text = "".join(self.base)
|
||||
|
||||
|
|
Reference in a new issue