Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter FiveGeneral Functions (continued)

GetQNameParts Function

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. 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