Livecode Wiki
Advertisement

Checks whether the syntax of an XML tree conforms to a DTD.Syntax:

revXMLValidateDTD(<treeID>, <DTDText>)

Examples:

revXMLValidateDTD(3,field "DTD")
put revXMLValidateDTD(field "Tree",myDTD) into field "Errors"

Use the revXMLValidateDTD function to validate an XML tree against a DTD.

If the revXMLValidateDTD function encounters an error, it returns an error message starting with "xmlerr".

The revXMLValidateDTD function is part of the 

XML library. To ensure that the function 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.

Parameters:

  • treeID: The number returned by the revXMLCreateTree or revXMLCreateTreeFromFilefunction when you created the XML tree.
  • DTDText: A Document Type Definition.
  • Returns: The revXMLValidateDTD function returns empty if the XMLtree validates against the DTD.

See also: revXMLCreateTreeFromFile (function),revXMLCreateTree (function),XML library (library),

Advertisement