OTX Reference  
OpenTestSystem.Otx.Extensions.XML.Terms.GetXmlElementAttributes Class Reference

Returns all XML attributes of a XML element More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.XML.Terms.GetXmlElementAttributes:
Inheritance graph

Public Attributes

XmlElementTerm element
 The XmlElement object to which the operation is applied. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Cardinality [0..1]
The MetaData type allows tools to store additional, mainly tool-specific data. More...
 

Detailed Description

Returns all XML attributes of a XML element

The GetXmlElementAttributes activity returns all XML attributes of a XML element as a Map<String, String>. The name can contain an arbitrary namespace in form of "Namespace:Name".

Syntax
MapTerm = Xml.GetXmlElementAttributes(XmlElementTerm element);
XmlElementTerm element
The XmlElement object to which the operation is applied.
Definition: XML.cs:1380
Examples
// Local Declarations
Xml.XmlElement XmlElement1;
Map<String, String> Map1;
// Flow
XmlElement1 = Xml.CreateXmlElement("root", "text", {"attr":"val"});
Map1 = Xml.GetXmlElementAttributes(XmlElement1);

Member Data Documentation

◆ element

XmlElementTerm OpenTestSystem.Otx.Extensions.XML.Terms.GetXmlElementAttributes.element

The XmlElement object to which the operation is applied.