Field-Map Scripting

4.1.11.2.4 GetFirstChildElement

GetFirstChildElement function


Prototype:

function GetFirstChildElement(const ElementPath: string): TScriptXMLElement;

Description:

The GetFirstChildElement function returns the first child element of the specified reference XML element as an instance of the TScriptXMLElement class. If a condition is specified (using XPath language), the returned element is the first found element which meets this condition. The return value of this function can be used for example as a new reference element.

Syntax:

variable := TScriptXMLElement.GetFirstChildElement(ElementPath);


Part

Description


variable

A variable declared as an instance of the TScriptXMLElement class


TScriptXMLElement

A variable declared as an instance of the TScriptXMLElement class


ElementPath

A string parameter specifying the name of the desired reference element and its location in the XML structure using the "/" (forward slash) delimiter

Return value:

The first child element of the specified reference XML element as an instance of the TScriptXMLElement class


Note: This function is available since version X7.



See also:

GetRootElement; GetElementName; GetChildElements; GetFirstChildElement; GetElementText; GetElementInteger; GetElementDouble; GetElementBoolean; GetElementCDATA; HasAttribute; HasNoNullAttribute; GetStringAttribute; GetStringAttributeAsString; GetStringAttributeAsDateTime; GetIntegerAttribute; GetIntegerAttributeAsInteger; GetFloatAttribute; GetFloatAttributeAsVariant; GetFloatAttributeAsFloat; GetBooleanAttribute; GetFirstChildElementStringAttribute; GetFirstChildElementStringAttributeAsString; GetFirstChildElementIntegerAttribute; GetFirstChildElementIntegerAttributeAsInteger; GetFirstChildElementFloatAttribute; GetFirstChildElementFloatAttributeAsVariant; GetFirstChildElementFloatAttributeAsFloat; GetFirstChildElementBooleanAttribute; Name; FreeXMLElement; SaveValuesToTable; GetRootElementName; GetFirstChildElementText; GetFirstChildElementinteger; GetFirstChildElementDouble; GetFirstChildElementboolean