Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter ElevenSGML Functions (continued)

DTDParseTagCase Function

Overview

The DTDParseTagCase function parses the first section of an HTML or XML file to determine the document type information.

Syntax/Parameters

Syntax

int = DTDParseTagCase ( handle hMTO | string data );

Parameters

hMTO

A handle to a Mapped Text Object. Or,

data

A string containing HTML or XML.

Return Value

An int containing the returned case code or a formatted error code on failure. Use the GetLastError and GetLastErrorMessage to retrieve a formatted error code and additional information.

Remarks

The return value is the case of tags by observation via parsing. The first section of the data is scanned and the tags tested. The case codes with the SDK prefix SGML_GET_CASE_:

SGML_GET_CASE_UNKNOWN

SGML_GET_CASE_MIXED

SGML_GET_CASE_UPPER

SGML_GET_CASE_LOWER

The source can be any SGML type document (HTML/XML).

Related Functions

Platform Support

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

Legato IDE, Legato Basic