Represents a document in XML format.
| Availability | The object is returned by a method or a property of another object |
appendchild
| Description | Adds a parameter to the XML document |
| Value Type | |
| Format | xmldocument.appendchild(target, data) |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
| Parameter | Value Type | Description |
| target | string | The target of the node |
| data | string | The information of the node |
Examples
xmldocument.appendchild("target","data")
createattribute
| Description | Creates a new XML attribute |
| Value Type | xmlattribute |
| Format | xmlattribute = xmldocument.createattribute(attributename) |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
| Parameter | Value Type | Description |
| attributename | string | The name of the attribute |
Examples
attribute = xmldocument.createattribute("attribute")
createelement
| Description | Creates a new XML element |
| Value Type | xmlelement |
| Format | xmlelement = xmldocument.createelement(elementname) |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
| Parameter | Value Type | Description |
| elementname | string | The name of the element |
Examples
element = xmldocument.createelement("name element")
save
| Description | Saves the XML document on the device |
| Value Type | |
| Format | xmldocument.save(filename) |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
| Parameter | Value Type | Description |
| filename | string | The complete path of the file name to be used for saving |
Examples
xmldocument.save("c:/files/data.xml")