Difference between revisions of "Extensions.Xml.DeleteXmlAttribute"

From emotive
Jump to navigation Jump to search
Line 9: Line 9:
  
 
== Description ==
 
== Description ==
The '''DeleteXmlAttribute''' action is used to deletes an XML attribute by name.
+
The '''DeleteXmlAttribute''' action is used to delete an XML attribute by name.
  
 
== Properties ==
 
== Properties ==

Revision as of 04:55, 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 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

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