Field-Map Scripting

4.1.11.1.7 GetAttributeValueFromXMLDocument

GetAttributeValueFromXMLDocument function


Prototype:

function GetAttributeValueFromXMLDocument(const Filename_, ElementPath_, AttributeName_ :string) :variant;

Description:

Gets an attribute value directly from a file containing a XML document

Syntax:

variable := GetAttributeValueFromXMLDocument(FileName, ElementPath, AttributeName);


Part

Description


variable

A variable declared as a variant


FileName

The name and path of the XML file from which to get the attribute value


ElementPath

The name of the element from which to get the attribute value


AttributeName

The name of the attribute from which to get the value

Return value:

attribute value



See also:

OpenXMLDocument; OpenLockedXMLDocument; OpenXMLDocumentExt; OpenXMLDocumentFromString; OpenXMLDocumentFromStringExt; FreeXMLDocument; GetAttributeValueFromXMLDocument


Example