4D v14.3XML SET OPTIONS |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
XML SET OPTIONS
|
XML SET OPTIONS ( elementRef | document ; selector ; value {; selector2 ; value2 ; ... ; selectorN ; valueN} ) | ||||||||
Parameter | Type | Description | ||||||
elementRef | document | Text, DocRef |
![]() |
XML root element reference or Reference of open document | |||||
selector | Longint |
![]() |
Option to set | |||||
value | Longint |
![]() |
Value of option | |||||
The XML SET OPTIONS command is used to modify the value of one or more XML options for the structure passed in the first parameter.
This command applies the XML structures of the "tree" type (DOM) or of the "document" type (SAX). In the first parameter, you can pass either a root element reference (elementRef), or the reference of an open SAX document (document).
The options set by this command are only used in the direction 4D to XML (it has no effect on the reading of XML values in 4D). The following commands use these options:
Pass the option to be modified in selector and the new value of the option in value. You can pass as many selector/value pairs as you want.
You must use the constants described below, placed in the "XML" theme:
Constant | Type | Value | Comment |
XML binary encoding | Longint | 5 | Specifies the way binary data will be converted. Possible values:
|
XML date encoding | Longint | 2 | Specifies the way 4D dates will be converted. For example, !01/01/2003! in the Paris time zone. Possible values:
|
XML indentation | Longint | 4 | Specifies the indentation of the XML document. Possible values:
|
XML picture encoding | Longint | 6 | Specifies the way pictures must be converted (before encoding in Base64). Possible values:
|
XML string encoding | Longint | 1 | Specifies the way 4D strings are converted to element values. It does not concern the conversion to attributes for which XML imposes the use of escape characters. Possible values:
|
XML time encoding | Longint | 3 | Specifies the way 4D times are converted. For example, ?02/00/46? (Paris time). The encoding differs depending on whether you want to express a time or a duration. Possible values for times:
|
Notes:
Insertion of an SVG picture:
XML SET OPTIONS($pictElemRef;XML binary encoding;XML data URI scheme)
XML SET OPTIONS($pictElemRef;XML picture encoding;XML native codec)
DOM SET XML ATTRIBUTE($pictElemRef;"xlink:href";PictVar)
Product: 4D
Theme: XML
Number:
1090
Created: 4D v12
DOM SET XML ATTRIBUTE
DOM SET XML DECLARATION
DOM SET XML ELEMENT VALUE
SAX ADD XML ELEMENT VALUE
XML GET OPTIONS
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)