DOM SET XML OPTIONS

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


DOM SET XML OPTIONS (elementRef; encoding{; standalone{; indentation}})

ParameterTypeDescription
elementRefStringXML element reference
encodingStringXML document character set
standaloneBooleanTrue = document is standalone
False (default) = document is not standalone
indentationBooleanTrue (default) = document is indented
False = document is not indented

Description

The DOM SET XML OPTIONS command allows you to define various options that are useful in creating the XML tree set using elementRef. These options concern encoding, the standalone property and tree identation options:

encoding: Indicates the character set used in the document. By default (if the command is not called), the UTF-8 character set (compressed Unicode) is used.

standalone: Indicates whether the tree is standalone (True) or if it needs other files or external resources to operate (False). By default (if the command is not called or if the parameter is omitted), the tree is not standalone.

indentation: Indicates whether the tree should display indentations corresponding to XML key hierarchies (True) or not (False). By default (if the command is not called or if the parameter is omitted), the tree is indented.

Example

The following example sets the encoding to use and the standalone option in the elementRef element:

   DOM SET XML OPTIONS(elementRef;"UTF-16";True) 

See Also

DOM Create XML Ref.


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