Difference between revisions of "Extensions.Xml.SetXmlElementText"
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
{{TableRowPropertie1| Element| [[Extensions.Xml.XmlElement|XmlElement]] | [[Term]] | - |[1..1]| The '''XmlElement''' object, to which the operation is applied.}} | {{TableRowPropertie1| Element| [[Extensions.Xml.XmlElement|XmlElement]] | [[Term]] | - |[1..1]| The '''XmlElement''' object, to which the operation is applied.}} | ||
− | {{TableRowPropertie2| Text| [[ | + | {{TableRowPropertie2| Text| [[Core.DataTypes.SimpleDataType.String|String]] | [[Term]] | - | [1..1] | Contains the text of the '''XML''' element.}} |
|} | |} | ||
Revision as of 08:49, 8 October 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, 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