Extensions.Xml.GetXmlElementChildElements
Jump to navigation
Jump to search
Contents
Classification
Name | GetXmlElementChildElements |
Short Description | Returns all child elements of an XML element |
Class | Term |
Extension | OTX Xml extension |
Group | Xml related Terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
ListTerm Xml.GetXmlElementChildElements(XmlElementTerm element, StringTerm elementName);
Description
The GetXmlElementChildElements term returns all child elements of an XML element as a list of XmlElement objects.
Return Value
The Term returns the value, see table below.
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
List | The list<XmlElement> of all child elements 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. |
ElementName | String | Term | - | [0..1] | The (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 "Prefix:Name". |
OTL 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);
See also
CopyXmlElement
CreateXmlDocument
CreateXmlElement
GetXmlElementAttributes
GetXmlElementName
GetXmlElementsByXPath
GetXmlElementText
GetXmlRootElement
XmlFromByteField
XmlLoadFromFile
XmlToByteField