OTX Reference  
OpenTestSystem.Otx.Extensions.XML.Actions.DeleteXmlAttribute Class Reference

Deletes an xml attribute by name. More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.XML.Actions.DeleteXmlAttribute:
Inheritance graph

Public Attributes

XmlElementTerm element
 Element which contains the to be deleted attribute. More...
 
StringTerm name
 Name of the attribute. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Validity of ActionRealisation. More...
 

Detailed Description

Deletes an xml attribute by name.

The DeleteXmlAttribute activity deletes an xml attribute by name.

Exceptions
Exceptions.XmlChangeException
Syntax
Xml.DeleteXmlAttribute(XmlElementTerm element, StringTerm name);
StringTerm name
Name of the attribute.
Definition: XML.cs:962
XmlElementTerm element
Element which contains the to be deleted attribute.
Definition: XML.cs:952
Examples
// Local Declarations
Xml.XmlElement XmlElement1;
// Flow
XmlElement1 = Xml.CreateXmlElement("root", "abcdef", {"attribute":"xyz"});
Xml.DeleteXmlAttribute(XmlElement1, "attribute");

Member Data Documentation

◆ element

XmlElementTerm OpenTestSystem.Otx.Extensions.XML.Actions.DeleteXmlAttribute.element

Element which contains the to be deleted attribute.

◆ name

StringTerm OpenTestSystem.Otx.Extensions.XML.Actions.DeleteXmlAttribute.name

Name of the attribute.