Difference between revisions of "Extensions.Xml.SetXmlElementText"

From emotive
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
== OTL Syntax ==
 
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
Xml.SetXmlElementText(XmlElementTerm, StringTerm);
+
Xml.SetXmlElementText(XmlElementTerm element, StringTerm text);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
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;
 
 

Latest revision as of 05:42, 8 November 2018

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 element, StringTerm text);

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

/// Local Declarations

Xml.XmlElement XmlElement1;
		
/// Flow

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

See also

AddXmlChildElement
DeleteXmlAttribute
DeleteXmlChildElement
SetXmlComment
SetXmlElementAttribute
SetXmlElementAttributes
SetXmlProcessingInstructions
ValidateXml
XmlSaveToFile