Difference between revisions of "Extensions.Xml.DeleteXmlAttribute"

From emotive
Jump to navigation Jump to search
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;
  

Revision as of 10:17, 25 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

/// 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