![]() ![]() |
GoFiler Legato Script Reference
Legato v 1.6d Application v 6.1b
|
Table of Contents | < < Previous | Next >> |
Chapter Five — General Functions (continued)
Overview
The XMLParseGetPosition function returns the start and end X/Y positions of the last parsed item.
Syntax/Parameters
Syntax
int[] = XMLParseGetPosition ( handle hXPO );
Parameters
hXPO
A handle specifying an XML Parse Object.
Return Value
Returns a int array of zero-based or an empty array on failure. Use the GetLastError function to retrieve error information. The GetLastErrorMessage can contain information on ERROR_CONTEXT.
Remarks
Each parse action by the XMLParseGetItem function will load information about the item including its position. For file-based source objects, the positions are represented as X/Y (character, line) values while for string source positions are represented as X positions only. As such, the Y position will always be zero even if the file contains line endings.
The returned key name and array positions are as follows:
s_x 0 Start X position
s_y 1 Start Y position
e_x 2 End X position
e_y 3 End Y position
Related Functions
Platform Support
Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL
Legato IDE, Legato Basic
Page revised 2025-08-15
Table of Contents | < < Previous | Next >> |
© 2012-2025 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission is prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. Novaworks, GoFiler™ and Legato™ are registered trademarks of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are the property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.