Skip to main content
Version: 21 R4 BETA

SAX ADD XML COMMENT

SAX ADD XML COMMENT ( document : Time ; comment : Text )

ParameterTypeDescription
documentTime→Reference of open document
commentText→Comment to be added
History
ReleaseChanges
2004Created

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

Example​

The following statement:

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

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

 <!--Created by 4D-->

System variables and sets​

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

Error management​

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

See also​

SAX ADD XML DOCTYPE

Properties​

Command number852
Thread safeyes
Modifies variablesOK, error