|
|
@ -153,7 +153,7 @@ class xml_xfce(TemplateFormat):
|
|
|
|
'(action="join", action="replace", action="drop")')
|
|
|
|
'(action="join", action="replace", action="drop")')
|
|
|
|
self.setError(textError)
|
|
|
|
self.setError(textError)
|
|
|
|
return False
|
|
|
|
return False
|
|
|
|
if xmlOldNode.getparent():
|
|
|
|
if xmlNewNode.getparent() is not None:
|
|
|
|
strAttr = [attrName, attrType]
|
|
|
|
strAttr = [attrName, attrType]
|
|
|
|
findAttr = [x for x in strAttr if x]
|
|
|
|
findAttr = [x for x in strAttr if x]
|
|
|
|
findAttrStr = ''
|
|
|
|
findAttrStr = ''
|
|
|
@ -251,4 +251,5 @@ class xml_xfce(TemplateFormat):
|
|
|
|
"""Получение текстового файла из XML документа"""
|
|
|
|
"""Получение текстового файла из XML документа"""
|
|
|
|
data = xml_to_str(self.doc).split("\n")
|
|
|
|
data = xml_to_str(self.doc).split("\n")
|
|
|
|
data = [x for x in data if x.strip()]
|
|
|
|
data = [x for x in data if x.strip()]
|
|
|
|
|
|
|
|
data.insert(0, '<?xml version="1.0" encoding="UTF-8"?>\n')
|
|
|
|
return "\n".join(data).replace("\t", " ")
|
|
|
|
return "\n".join(data).replace("\t", " ")
|
|
|
|