SAX ADD XML COMMENT

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 COMMENT (document; comment)

ParameterTypeDescription
documentDocRefReference of open document
commentStringComment to be added

Description

The SAX ADD XML COMMENT command adds a comment in the XML document referenced by document.

An XML comment is a text whose contents will not be parsed by the XML interpreter. XML comments must be enclosed between the <!-- and characters.

Example

The following statement:

   vComment:= "Created by 4th Dimension"
   SAX ADD XML COMMENT ($DocRef;vComment)

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

<!--Created by 4th Dimension-->

See Also

SAX ADD XML DOCTYPE.

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 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