Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter ElevenSGML Functions (continued)

SGMLSetString Function

Overview

The SGMLSetString function sets a specified string as the data to be parsed. The string will be mapped into a format with X and Y positions.

Syntax/Parameters

Syntax

int = SGMLSetString ( handle hSGML, string source );

Parameters

hSGML

A handle to an SGML object.

source 

A string that contains ANSI or UTF-8 as the data to be parsed.

Return Value

A int as ERROR_NONE (0) or a formatted error code.

Remarks

SGMLSetString is an easy way to quickly add data and parse with the SGML Object. The string must contain data or an error will be returned.

The parse position is set to 0,0. All returned positions are set as x/y coordinates within the string. [Use the [] function to map to an absolute string position.]

If a DTD was specified during the creation of the SGML Object, it will be used. Otherwise, the DTD specified in the incoming source string will be used. If the source does not contain a DTD specification, the default DTD will be HTML 5.0 (DTD_DEFAULT_HTML_50).

Related Functions

Platform Support

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

Legato IDE, Legato Basic