Difference between revisions of "Extensions.Xml.DeleteXmlAttribute"
Jump to navigation
Jump to search
(Created page with "{{DISPLAYTITLE:OTX '''DeleteXmlAttribute'''}}Category:Xml == Classification == {{ClassificationActivity | DeleteXmlAttribute | UPDATING... | Action | Extensions.Xml|...") |
|||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:OTX '''DeleteXmlAttribute'''}}[[Category:Xml]] | {{DISPLAYTITLE:OTX '''DeleteXmlAttribute'''}}[[Category:Xml]] | ||
== Classification == | == Classification == | ||
− | {{ClassificationActivity | DeleteXmlAttribute | | + | {{ClassificationActivity | DeleteXmlAttribute| Deletes an XML attribute | [[Action]] | [[Extensions.Xml|OTX Xml extension]] |[[Extensions.Xml#Actions|Xml related Actions]] | [[Extensions.Xml.XmlChangeException|XmlChangeException]]| -|}} |
== 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); | |
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
== Description == | == Description == | ||
− | + | The '''DeleteXmlAttribute''' action is used to deletes an XML attribute by name. | |
− | |||
− | |||
− | |||
− | |||
== Properties == | == Properties == | ||
− | |||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{TableRowPropertie1| | + | {{TableRowPropertie1| Element| [[Extensions.Xml.XmlElement|XmlElement]] | [[Term]] | - | [1..1] | The element which contains the to be deleted attribute.}} |
+ | {{TableRowPropertie2| Name| [[Core.DataTypes.SimpleDataType.String|String]] | [[Term]] | - | [1..1] | The name of the attribute.}} | ||
|} | |} | ||
− | |||
== OTL Examples == | == OTL Examples == | ||
− | |||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | Xml.XmlElement XmlElement1; | |
− | + | /// Flow | |
− | + | XmlElement1 = Xml.CreateXmlElement("root", "abcdef", {"attribute":"xyz"}); | |
− | + | Xml.DeleteXmlAttribute(XmlElement1, "attribute"); | |
− | |||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
== See also == | == See also == | ||
− | + | [[Extensions.Xml.AddXmlChildElement|AddXmlChildElement]]<br/> | |
+ | <!--[[Extensions.Xml.DeleteXmlAttribute|DeleteXmlAttribute]]<br/>--> | ||
+ | [[Extensions.Xml.DeleteXmlChildElement|DeleteXmlChildElement]]<br/> | ||
+ | [[Extensions.Xml.SetXmlComment|SetXmlComment]]<br/> | ||
+ | [[Extensions.Xml.SetXmlElementAttribute|SetXmlElementAttribute]]<br/> | ||
+ | [[Extensions.Xml.SetXmlElementAttributes|SetXmlElementAttributes]]<br/> | ||
+ | [[Extensions.Xml.SetXmlElementText|SetXmlElementText]]<br/> | ||
+ | [[Extensions.Xml.SetXmlProcessingInstructions|SetXmlProcessingInstructions]]<br/> | ||
+ | [[Extensions.Xml.ValidateXml|ValidateXml]]<br/> | ||
+ | [[Extensions.Xml.XmlSaveToFile|XmlSaveToFile]] |
Revision as of 04:48, 8 October 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, StringTerm);
Description
The DeleteXmlAttribute action is used to deletes 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
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