[Overview][Classes][Procedures and functions][Index] Reference for unit 'Laz2_XMLCfg' (#lazutils)

TXMLConfig.GetListItemXPath

Gets the path specifier used to access a list item at the specified position.

Declaration

Source position: laz2_xmlcfg.pas line 146

public class function TXMLConfig.GetListItemXPath(

  const AName: string;

  const AIndex: Integer;

  const aLegacyList: Boolean;

  const aLegacyList1Based: Boolean = False

):string;

Arguments

AName

  

Name for the list item.

AIndex

  

Position for the list item.

aLegacyList

  

Indicates that array-style notation (with square brackets) is not used when True.

aLegacyList1Based

  

Indicates if positions in the list start at 1 instead of 0.

Function result

Path specifier for the list item at the specified position.

Description

GetListItemXPath is a String class function used to get the path specifier used to access a list item at the specified position in the Document. The return value contains the path specifier constructed for the list item. For example:

'item0'
'item1'
'item[0]'

Version 4.0 Generated 2025-05-03 Home