Extensions.Xml.DeleteXmlAttribute
Jump to navigation
Jump to search
Classification
Name | DeleteXmlAttribute |
Short Description | Deletes an XML attribute |
Class | Action |
Extension | OTX Xml extension |
Group | Xml related Actions |
Exceptions | XmlChangeException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
Xml.DeleteXmlAttribute(XmlElementTerm element, StringTerm name);
Description
The DeleteXmlAttribute action is used to delete an XML attribute by name.
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Element | XmlElement | Term | - | [1..1] | The element which contains the to be deleted attribute. |
Name | String | Term | - | [1..1] | The name of the attribute. |
OTL Examples
/// Local Declarations
Xml.XmlElement XmlElement1;
/// Flow
XmlElement1 = Xml.CreateXmlElement("root", "abcdef", {"attribute":"xyz"});
Xml.DeleteXmlAttribute(XmlElement1, "attribute");
See also
AddXmlChildElement
DeleteXmlChildElement
SetXmlComment
SetXmlElementAttribute
SetXmlElementAttributes
SetXmlElementText
SetXmlProcessingInstructions
ValidateXml
XmlSaveToFile