The object represents an XML element within a document.
| Availability | The object is returned by a method or a property of another object |
appendattribute
| Description | Adds an attribute to the element |
| Value Type | |
| Format | xmlelement.appendattribute(attribute) |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
| Parameter | Value Type | Description |
| attribute | xmlattribute | The attribute to add to the element |
Examples
xmlelement.appendattribute(xmlattribute)
appendchild
| Description | Adds an XML element as a child |
| Value Type | |
| Format | xmlelement.appendchild(element) |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
| Parameter | Value Type | Description |
| element | xmlelement | The element to add |
Examples
xmlelement.appendchild(element2)
getattributes
| Description | Retrieves all the xml attributes present within the element |
| Value Type | list<xmlattributes> |
| Format | list<xmlattributes> = xmlelement.getattributes() |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
Examples
attributes = xmlelement.getattributes()
getvalue
| Description | Retrieves the value saved inside the element |
| Value Type | object |
| Format | object = xmlelement.getvalue() |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
Examples
value = xmlelement.getvalue()
removeattribute
| Description | Removes a specific XML attribute from the element |
| Value Type | |
| Format | xmlelement.removeattribute(attribute) |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
| Parameter | Value Type | Description |
| attribute | xmlattribute | The attribute to be deleted |
Examples
xmlelement.removeattribute(attribute)
setvalue
| Description | Sets the value of an element |
| Value Type | |
| Format | xmlelement.setvalue(value) |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
| Parameter | Value Type | Description |
| value | object | The value to be set |
Examples
xmlelement.setvalue("value")