Difference between revisions of "Extensions.Xml.CopyXmlElement"
Jump to navigation
Jump to search
(2 intermediate revisions 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;"> | ||
− | XmlElementTerm | + | XmlElementTerm Xml.CopyXmlElement(XmlElementTerm element); |
</syntaxhighlight> | </syntaxhighlight> | ||
== Description == | == Description == | ||
− | The '''CopyXmlElement''' | + | The '''CopyXmlElement''' term returns a deep copy of an '''XmlElement'''. |
{{TermReturnValue| [[Extensions.Xml.XmlElement|XmlElement]] | The copy of an '''XmlElement'''.}} | {{TermReturnValue| [[Extensions.Xml.XmlElement|XmlElement]] | The copy of an '''XmlElement'''.}} | ||
Line 21: | Line 21: | ||
== 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; | ||
Xml.XmlElement XmlElement2; | Xml.XmlElement XmlElement2; |
Latest revision as of 05:48, 8 November 2018
Contents
Classification
Name | CopyXmlElement |
Short Description | Copies an XmlElement. |
Class | Term |
Extension | OTX Xml extension |
Group | Xml related Terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
XmlElementTerm Xml.CopyXmlElement(XmlElementTerm element);
Description
The CopyXmlElement term returns a deep copy of an XmlElement.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
XmlElement | The copy of an XmlElement. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Element | XmlElement | Term | - | [1..1] | The XML element to copy. |
OTL Examples
/// Local Declarations
Xml.XmlElement XmlElement1;
Xml.XmlElement XmlElement2;
/// Flow
XmlElement1 = Xml.CreateXmlElement("root", "~!@#$%^&*()_+{}|:\"<>?`1234567890-=[]\\;',./", {"type":"rootnode"});
XmlElement2 = Xml.CopyXmlElement(XmlElement1);
See also
CreateXmlDocument
CreateXmlElement
GetXmlElementAttributes
GetXmlElementChildElements
GetXmlElementName
GetXmlElementsByXPath
GetXmlElementText
GetXmlRootElement
XmlFromByteField
XmlLoadFromFile
XmlToByteField