revXMLAddDTD

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
revXMLAddDTD <treeID>, <DTDText>
Associationsxml library
Summary

Adds an internal DTD to an existing XML tree.

Introduced2.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
treeID

The number returned by the revXMLCreateTree or revXMLCreateTreeFromFile function when you created the XML tree.

DTDText

A string that makes up a valid Document Type Definition.

Example
revXMLAddDTD 12,URL "file:ExampleDTD.txt"
revXMLAddDTD theCurrTree,the templateDTD of me
Values
NameTypeDescription
The result

If the revXMLAddDTD command encounters an error, the result is set to an error message beginning with "xmlerr".

RelatedCommand: revXMLAppend
Function: revXMLValidateDTD, result, revXMLCreateTree, revXMLCreateTreeFromFile
Glossary: Standalone Application Settings, standalone application, DTD, XML tree, command, LiveCode custom library
Library: XML library
Securitydisk
Description

Use the revXMLAddDTD command to specify the format of an XML tree.

Important: The revXMLAddDTD command is part of the XML library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure the "XML" checkbox is checked.

Tagstext processing