Difference between revisions of "Extensions.Xml.DeleteXmlAttribute"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
== OTL Syntax == | == OTL Syntax == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | Xml.DeleteXmlAttribute(XmlElementTerm, StringTerm); | + | Xml.DeleteXmlAttribute(XmlElementTerm element, StringTerm name); |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 20: | Line 20: | ||
== OTL Examples == | == OTL Examples == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | /// Local Declarations | ||
+ | |||
Xml.XmlElement XmlElement1; | Xml.XmlElement XmlElement1; | ||
Latest revision as of 04:55, 8 November 2018
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