4D v14.3SAX ADD XML COMMENT |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
SAX ADD XML COMMENT
|
SAX ADD XML COMMENT ( document ; comment ) | ||||||||
Parameter | Type | Description | ||||||
document | DocRef |
![]() |
Reference of open document | |||||
comment | String |
![]() |
Comment to be added | |||||
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.
The following statement:
vComment:="Created by 4D"
SAX ADD XML COMMENT($DocRef;vComment)
... will write the following line in the document:
<!--Created by 4D-->
If the command has been executed correctly, the system variable OK is set to 1. Otherwise, it is set to 0.
In the event of an error, the command returns an error which can be intercepted using an error-handling method.
Product: 4D
Theme: XML SAX
Number:
852
Created: 4D 2004
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)