SAX ADD XML DOCTYPE

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 2004


SAX ADD XML DOCTYPE (document; docType)

ParameterTypeDescription
documentDocRefReference of open document
docTypeStringDocType to be added

Description

The SAX ADD XML DOCTYPE command adds a DocType statement set by the docType parameter in the XML document referenced by document.

The DocType statement lets you indicate the type of XML in which the document has been written and to specify the Document Type Declaration (DTD) used. A DocType statement generally takes the following form: <!DOCTYPE XML_type "DTD_address">.

Example

The following statement:

   vDocType := "SYSTEM Books \"Book.DTD\""
   SAX ADD XML DOCTYPE ($DocRef;vDocType)

... will write the following line in the document:

<!DOCTYPE SYSTEM Books "Book.DTD">

See Also

SAX ADD XML COMMENT.

System Variables or Sets

If the command has been executed correctly, the system variable OK is set to 1. Otherwise, it is set to 0.

Error Handling

In the event of an error, the the command returns an error which can be intercepted using an error-handling method.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next