SelectFirstChild (Method)

Overview

Type:

Method

Available as of:

V1.3.2.0

G-SE-0078757.1.png

 

 

Functional Description

This method is used to select the first child element of the presently selected element.

The return value of type BOOL indicates TRUE if an element was successfully selected.

A call of this method returns either Ok, NoElementSelected, or ElementNotFound. Use the property Result to obtain the result of the method.

The method has no inputs.

Example

Precondition: The XML file (illustrated below) was read using the FB_XmlRead and the content is stored in the array astXmlFile of type XmlItems.

Code:

fbXmlItems.SelectEle­ment('/root/A1', astXmlData);
fbXmlItems.SelectFirstChild();

Result:

The element B1 is selected.

G-SE-0078743.1.png