Extensions.Xml.GetXmlElementAttributes

From emotive
Revision as of 05:55, 8 November 2018 by Hb (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

Icons Note.png 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