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

Returns all child elements of a XML element as a list of XmlElement objects. More...

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

Public Attributes

XmlElementTerm element
 Cardinality [1]
The XmlElement object to which the operation is applied. More...
 
StringTerm elementName
 Cardinality [0..1]
Optional name of the child elements. If specified, only elements with this name will be returned. The value can contain an arbitrary namespace in form of "Namespace:Name". 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 child elements of a XML element as a list of XmlElement objects.

The GetXmlElementChildElements activity returns all child elements of a XML element as a list of XmlElement objects.

Syntax
ListTerm = Xml.GetXmlElementChildElements(XmlElementTerm element, StringTerm elementName = "");
XmlElementTerm element
Cardinality [1] The XmlElement object to which the operation is applied.
Definition: XML.cs:1242
StringTerm elementName
Cardinality [0..1] Optional name of the child elements. If specified, only elements with this name wi...
Definition: XML.cs:1252
Examples
// Local Declarations
Xml.XmlElement XmlElement1;
Xml.XmlElement XmlElement2;
List<Xml.XmlElement> List1;
// Flow
XmlElement1 = Xml.CreateXmlElement("root", "text", {"attrb":"val"});
XmlElement2 = Xml.CreateXmlElement("child1", "text1");
Xml.AddXmlChildElement(XmlElement1, XmlElement2);
List1 = Xml.GetXmlElementChildElements(XmlElement1);

Member Data Documentation

◆ element

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

Cardinality [1]
The XmlElement object to which the operation is applied.

◆ elementName

StringTerm OpenTestSystem.Otx.Extensions.XML.Terms.GetXmlElementChildElements.elementName

Cardinality [0..1]
Optional name of the child elements. If specified, only elements with this name will be returned. The value can contain an arbitrary namespace in form of "Namespace:Name".