OTX Reference  
OpenTestSystem.Otx.Extensions.XML.Terms.GetXmlElementText Class Reference

Returns the text of a XML element as a String. More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.XML.Terms.GetXmlElementText:
Inheritance graph

Public Attributes

XmlElementTerm element
 Cardinality [1]
The XmlElement object to which the operation is applied. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Cardinality [0..1]
The MetaData type allows tools to store additional, mainly tool-specific data. More...
 

Detailed Description

Returns the text of a XML element as a String.

The GetXmlElementText activity returns the text of a XML element as a String. If no text is available an empty string is returned. Escaped special characters '<', '>' and '&' shall be decoded. If the element contains CDATA's the returned string contains the content of the CDATA section as it is. If the element contains multiple text and/or CDATA nodes, the returned String is the concatenation of all these nodes.

Syntax
StringTerm = Xml.GetXmlElementText(XmlElementTerm eElement);
Examples
// Local Declarations
Xml.XmlElement XmlElement1;
String String1 = "";
// Flow
XmlElement1 = Xml.CreateXmlElement("root", "abc");
String1 = Xml.GetXmlElementText(XmlElement1);

Member Data Documentation

◆ element

XmlElementTerm OpenTestSystem.Otx.Extensions.XML.Terms.GetXmlElementText.element

Cardinality [1]
The XmlElement object to which the operation is applied.