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
 The XmlElement object to which the operation is applied. More...
 
StringTerm elementName
 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
 Store additional 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
The XmlElement object to which the operation is applied.
Definition: XML.cs:1130
StringTerm elementName
Optional name of the child elements. If specified, only elements with this name will be returned....
Definition: XML.cs:1140
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

The XmlElement object to which the operation is applied.

◆ elementName

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

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".