xml object test
This commit is contained in:
1 parent
a5766c41ce
commit
b59a0797c9
2 files changed
+38
-3
No files matched your search
@@ -69,20 +69,21 @@ class XmlObject
|
||||
|
||||
for i = 0 to node.children.count() - 1
|
||||
child = node.children[i]
|
||||
childIsString = IsString(child)
|
||||
if i = 0
|
||||
if not IsString(child)
|
||||
if not childIsString
|
||||
xmlString += `\n`
|
||||
end if
|
||||
end if
|
||||
|
||||
if IsString(child)
|
||||
if childIsString
|
||||
xmlString += m.XmlEscape(child)
|
||||
else
|
||||
xmlString += m.NodeToXmlString(child, indentLevel + 1)
|
||||
end if
|
||||
|
||||
if i = node.children.count() - 1
|
||||
if not IsString(child)
|
||||
if not childIsString
|
||||
xmlString += `${indentString}`
|
||||
end if
|
||||
end if
|
||||
|
||||
Reference in new issue
Block a user