Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter FiveGeneral Functions (continued)

GetTagElement Function

Overview

The GetTagElement function returns the element from an SGML style formatted tag.

Syntax/Parameters

Syntax

string = GetTagElement ( string tag, [boolean nsflag] );

Parameters

tag

A string containing an SGML style tag.

nsflag

An optional boolean value specifying whether to include the namespace identifier. If omitted or FALSE, the namespace text is stripped from the element name.

Return Value

Returns a string containing the element of tag or empty on failure. Use the GetLastError function to retrieve error information.

Remarks

This function is a “quick and dirty” method of retrieving SGML information from tags without the complexity of setting up an SGML element object or a DTD. Very little error and syntax checking is performed.

If the element contains a namespace, the namespace is removed unless the nsflag parameter is set to TRUE.

Related Functions

Platform Support

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

Legato IDE, Legato Basic