Difference between revisions of "Extensions.Xml.GetXmlElementName"
Jump to navigation
Jump to search
(Created page with "{{DISPLAYTITLE:OTX '''GetXmlElementName'''}}Category:Xml == Classification == {{ClassificationActivity | GetXmlElementName | UPDATING... | Term | Extensions.Xml|OTX...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:OTX '''GetXmlElementName'''}}[[Category:Xml]] | {{DISPLAYTITLE:OTX '''GetXmlElementName'''}}[[Category:Xml]] | ||
== Classification == | == Classification == | ||
− | {{ClassificationActivity | GetXmlElementName | | + | {{ClassificationActivity | GetXmlElementName|Returns the name of an XML element| [[Term]] | [[Extensions.Xml|OTX Xml extension]] |[[Extensions.Xml#Terms|Xml related Terms]] | - | - |}} |
== OTL Syntax == | == OTL Syntax == | ||
− | |||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | StringTerm Xml.GetXmlElementName(XmlElementTerm element); | |
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
== Description == | == Description == | ||
− | + | The '''GetXmlElementName''' term returns the name of an '''XML''' element as a String. The value can contain an arbitrary namespace in form of "Prefix:Name". | |
− | + | ||
− | + | {{TermReturnValue| [[Core.DataTypes.SimpleDataType.String|String]] | The name of an '''XML''' element}} | |
− | {{ | ||
− | |||
== Properties == | == Properties == | ||
− | |||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{ | + | {{TableRowPropertie2| Element|[[Extensions.Xml.XmlElement|XmlElement]] | [[Term]] | - |[1..1]| The '''XmlElement''' object, to which the operation is applied.}} |
|} | |} | ||
− | |||
== 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; | ||
+ | String String1 = ""; | ||
− | + | /// Flow | |
− | + | XmlElement1 = Xml.CreateXmlElement("root", "abc"); | |
− | + | String1 = Xml.GetXmlElementName(XmlElement1); | |
− | |||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
== See also == | == See also == | ||
− | + | [[Extensions.Xml.CopyXmlElement|CopyXmlElement]]<br/> | |
+ | [[Extensions.Xml.CreateXmlDocument|CreateXmlDocument]]<br/> | ||
+ | [[Extensions.Xml.CreateXmlElement|CreateXmlElement]]<br/> | ||
+ | [[Extensions.Xml.GetXmlElementAttributes|GetXmlElementAttributes]]<br/> | ||
+ | [[Extensions.Xml.GetXmlElementChildElements|GetXmlElementChildElements]]<br/> | ||
+ | <!--[[Extensions.Xml.GetXmlElementName|GetXmlElementName]]<br/>--> | ||
+ | [[Extensions.Xml.GetXmlElementsByXPath|GetXmlElementsByXPath]]<br/> | ||
+ | [[Extensions.Xml.GetXmlElementText|GetXmlElementText]]<br/> | ||
+ | [[Extensions.Xml.GetXmlRootElement|GetXmlRootElement]]<br/> | ||
+ | [[Extensions.Xml.XmlFromByteField|XmlFromByteField]]<br/> | ||
+ | [[Extensions.Xml.XmlLoadFromFile|XmlLoadFromFile]]<br/> | ||
+ | [[Extensions.Xml.XmlToByteField|XmlToByteField]]<br/> |
Latest revision as of 05:57, 8 November 2018
Contents
Classification
Name | GetXmlElementName |
Short Description | Returns the name of an XML element |
Class | Term |
Extension | OTX Xml extension |
Group | Xml related Terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
StringTerm Xml.GetXmlElementName(XmlElementTerm element);
Description
The GetXmlElementName term returns the name of an XML element as a String. The value can contain an arbitrary namespace in form of "Prefix:Name".
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
String | The name of an XML element |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Element | XmlElement | Term | - | [1..1] | The XmlElement object, to which the operation is applied. |
OTL Examples
/// Local Declarations
Xml.XmlElement XmlElement1;
String String1 = "";
/// Flow
XmlElement1 = Xml.CreateXmlElement("root", "abc");
String1 = Xml.GetXmlElementName(XmlElement1);
See also
CopyXmlElement
CreateXmlDocument
CreateXmlElement
GetXmlElementAttributes
GetXmlElementChildElements
GetXmlElementsByXPath
GetXmlElementText
GetXmlRootElement
XmlFromByteField
XmlLoadFromFile
XmlToByteField