Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.6d

Application v 6.1b

  

 

Chapter FiveGeneral Functions (continued)

XMLParseHasLeadingSpace Function

Overview

The XMLParseHasLeadingSpace function test for any leading spaces prior to the last parsed item.

Syntax/Parameters

Syntax

boolean = XMLParseHasLeadingSpace ( handle hXPO );

Parameters

hXPO

handle specifying an XML Parse Object.

Return Value

Returns a boolean value as TRUE or FALSE as to whether the last item parsed had leading space. The function will return FALSE on failure. Use the GetLastError function to retrieve error information and IsError / IsNotError to test for an error.

Remarks

Spaces count as word spaces (0x20), tabs (0x09), line feeds (0x0A) and returns (0x0D).

Note that spaces do not count as part of an item’s position. The only way to determine the space position is to track the ending position of the previously parsed item and then capture the start position of the current item.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Page revised 2025-08-15