diff options
Diffstat (limited to 'module/XMLConfigParser.py')
-rw-r--r-- | module/XMLConfigParser.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/XMLConfigParser.py b/module/XMLConfigParser.py index 0d2094dae..5b1966152 100644 --- a/module/XMLConfigParser.py +++ b/module/XMLConfigParser.py @@ -101,16 +101,16 @@ class XMLConfigParser(): if opt.nodeType == opt.ELEMENT_NODE: if option == opt.tagName: replace = opt - text = self.createTextNode(value) + text = self.xml.createTextNode(str(value)) if replace: replace.replaceChild(text, replace.firstChild) else: - newNode = self.createElement(option) + newNode = self.xml.createElement(option) newNode.appendChild(text) if sectionNode: sectionNode.appendChild(newNode) else: - newSection = self.createElement(section) + newSection = self.xml.createElement(section) newSection.appendChild(newNode) root.appendChild(newSection) self.saveData() |