Extensions.Xml.GetXmlElementAttributes
Jump to navigation
Jump to search
Contents
Classification
Name | GetXmlElementAttributes |
Short Description | Returns all XML attributes of an XML element |
Class | Term |
Extension | OTX Xml extension |
Group | Xml related Terms |
Exceptions | - |
Checker Rules | Xml_Chk003 |
Standard Compliant | Yes |
OTL Syntax
MapTerm Xml.GetXmlElementAttributes(XmlElementTerm element);
Description
The GetXmlElementAttributes term returns all XML attributes of an XML element as a Map<String, String>. The name can contain an arbitrary namespace in form of "Namespace: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 |
Map | The Map<String, String> of all XML attributes 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;
Map<String, String> Map1;
/// Flow
XmlElement1 = Xml.CreateXmlElement("root", "text", {"attr":"val"});
Map1 = Xml.GetXmlElementAttributes(XmlElement1);
See also
CopyXmlElement
CreateXmlDocument
CreateXmlElement
GetXmlElementChildElements
GetXmlElementName
GetXmlElementsByXPath
GetXmlElementText
GetXmlRootElement
XmlFromByteField
XmlLoadFromFile
XmlToByteField