4D v16.3SAX SET XML DECLARATION |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
SAX SET XML DECLARATION
SAX SET XML DECLARATION
The SAX SET XML DECLARATION command initializes the XML document referenced in document using the values passed in the parameter. These parameters allow determining the encoding, standalone attribute and document indentation.
Compatibility note: The indentation parameter is kept for reasons of compatibility with previous versions of 4D but its use is not recommended beginning with 4D v12. From now on, to specify the indentation of the document, it is strongly recommended to use the XML SET OPTIONS command. This command must be called one time per document and before the first XML set command in the document; otherwise, an error message will be generated. The following code: SAX SET XML DECLARATION($DocRef;"UTF-16";True) ... will write this line in the document: <<?xml version="1.0" encoding="UTF-16" standalone="yes"?>
See also
|
PROPERTIES
Product: 4D HISTORY
Created: 4D 2004 ARTICLE USAGE
4D Language Reference ( 4D v16) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||