LUA object: xmldocument

Represents a document in XML format.

AvailabilityThe object is returned by a method or a property of another object

appendchild

DescriptionAdds a parameter to the XML document
Value Type
Formatxmldocument.appendchild(target, data)
TypeMethod
SystemsWindows, Web, Android, IOS, Mac OS
ParameterValue TypeDescription
targetstringThe target of the node
datastringThe information of the node
Examples
xmldocument.appendchild("target","data")

createattribute

DescriptionCreates a new XML attribute
Value Typexmlattribute
Formatxmlattribute = xmldocument.createattribute(attributename)
TypeMethod
SystemsWindows, Web, Android, IOS, Mac OS
ParameterValue TypeDescription
attributenamestringThe name of the attribute
Examples
attribute = xmldocument.createattribute("attribute")

createelement

DescriptionCreates a new XML element
Value Typexmlelement
Formatxmlelement = xmldocument.createelement(elementname)
TypeMethod
SystemsWindows, Web, Android, IOS, Mac OS
ParameterValue TypeDescription
elementnamestringThe name of the element
Examples
element = xmldocument.createelement("name element")

save

DescriptionSaves the XML document on the device
Value Type
Formatxmldocument.save(filename)
TypeMethod
SystemsWindows, Web, Android, IOS, Mac OS
ParameterValue TypeDescription
filenamestringThe complete path of the file name to be used for saving
Examples
xmldocument.save("c:/files/data.xml")