4D v14.3DOM Create XML element arrays |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
DOM Create XML element arrays
DOM Create XML element arrays
The DOM Create XML element arrays command is used to add a new element in the elementRef XML element, as well as, optionally, attributes and their values in the form of arrays. Apart from supporting arrays (see below), this command is identical to DOM Create XML element. Please refer to the description of this command for the details of its functioning. Optionally, this command can be used to pass several pairs of attributes and attribute values as arrays in the attribNamesArray and attribValuesArray parameters. In attribValuesArray, you can pass arrays of the text, date, number, and picture type. 4D automatically carries out the necessary conversions; you can modify these conversions using the XML SET OPTIONS command. The arrays must have been created beforehand and function by pairs. You can pass as many pairs of arrays and as many elements in each pair as you want. We want to create the following element: <?xml version="1.0" encoding="UTF-8" standalone="no" ?> <RootElement> <Elem1> <Elem2> <Elem3 Font="Verdana" Size="10" Style="Bold"></Elem3> </Elem2> </Elem1> </RootElement> For this, you can simply write: ARRAY TEXT(arrAttNames;3) |
PROPERTIES
Product: 4D
HISTORY
Created: 4D v12 SEE ALSO ARTICLE USAGE
4D Language Reference ( 4D v12.4) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||