Extensions.Xml.SetXmlElementText

From emotive
Revision as of 08:49, 8 October 2018 by Hb (talk | contribs) (→‎Properties)
Jump to navigation Jump to search

Classification

Name SetXmlElementText
Short Description Sets the text of an XmlElement.
Class Action
Extension OTX Xml extension
Group Xml related Actions
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

Xml.SetXmlElementText(XmlElementTerm, StringTerm);

Description

The SetXmlElementText action is used to set the text of an XmlElement. Existing text will be overwritten. Special characters '<', '>' and '&' shall be escaped.

Properties

Name Data Type Class Default Cardinality Description
Element XmlElement Term - [1..1] The XmlElement object, to which the operation is applied.
Text String Term - [1..1] Contains the text of the XML element.

OTL Examples

Xml.XmlElement XmlElement1;
		
/// Flow

XmlElement1 = Xml.CreateXmlElement("root");
Xml.SetXmlElementText(XmlElement1, "def");

See also

AddXmlChildElement
DeleteXmlAttribute
DeleteXmlChildElement
SetXmlComment
SetXmlElementAttribute
SetXmlElementAttributes
SetXmlProcessingInstructions
ValidateXml
XmlSaveToFile