GoFiler Legato Script Reference
Legato v 1.5d Application v 5.25a
|
Table of Contents | < < Previous | Next >> |
Chapter Five — General Functions (continued)
Overview
The GetQNameParts function splits an XML QName and returns the prefix and the local name form of an array.
Syntax/Parameters
Syntax
string[] = GetQNameParts ( string value );
Parameters
value
A string containing an XML QName.
Return Value
Returns a string array containing the key/data as names and attribute values or empty array on failure. Use the GetLastError function to retrieve error information.
Remarks
The GetQNameParts splits a QName into two array entries “Prefix’ and ‘LocalPart’, entry 0 and 1 respectively. SDK defined key index values can also be used:
GQNP_PREFIX 0 “Prefix” Key/Index
GQNP_LOCAL_PART 1 “LocalPart” Key/Index
If the QName does not contain a prefix, the function will return the entire value parameter as the LocalPart.
The split is set at the last colon (:) character. Any additional colons will be placed into the prefix.
A maximum of 1024 characters are allowed in each of the parts. The syntax of the QName is not validated.
If a slash is provided for an end element, it is removed from the string prior to processing.
Related Functions
Platform Support
Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL
Legato IDE, Legato Basic
Page revised 2024-12-13
Table of Contents | < < Previous | Next >> |
© 2012-2024 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. GoFiler™ and Legato™ are 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 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.