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

Sets the text of a XmlElement. More...

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

Public Attributes

XmlElementTerm element
 The XmlElement object to which the operation is applied. More...
 
StringTerm text
 Contains the text of the xml element. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Validity of ActionRealisation. More...
 

Detailed Description

Sets the text of a XmlElement.

The SetXmlElementText activity sets the text of a XmlElement. Existing text will be overwritten. Special characters '<', '>' and '&' shall be escaped.

Syntax
Xml.SetXmlElementText(XmlElementTerm element, StringTerm text);
StringTerm text
Contains the text of the xml element.
Definition: XML.cs:593
XmlElementTerm element
The XmlElement object to which the operation is applied.
Definition: XML.cs:583
Examples
// Local Declarations
Xml.XmlElement XmlElement1;
// Flow
XmlElement1 = Xml.CreateXmlElement("root");
Xml.SetXmlElementText(XmlElement1, "def");

Member Data Documentation

◆ element

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

The XmlElement object to which the operation is applied.

◆ text

StringTerm OpenTestSystem.Otx.Extensions.XML.Actions.SetXmlElementText.text

Contains the text of the xml element.