4D v14.3SAX OPEN XML ELEMENT |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
SAX OPEN XML ELEMENT
|
SAX OPEN XML ELEMENT ( document ; tag {; attribName ; attribValue} {; attribName2 ; attribValue2 ; ... ; attribNameN ; attribValueN} ) | ||||||||
Parameter | Type | Description | ||||||
document | DocRef |
![]() |
Reference of open document | |||||
tag | String |
![]() |
Name of element to open | |||||
attribName | String |
![]() |
Attribute name | |||||
attribValue | String |
![]() |
Attribute value | |||||
The SAX OPEN XML ELEMENT command adds a new element in the XML document referenced by document as well as, optionally, attributes and their values.
The added element is “open” in the document (the end tag is not added). To close an element created using this command, you must either:
In tag, pass the name of the element to be created. This name may only contain letters, numbers and the characters “.”, “-“,”_” and “:”. If an invalid character is passed in tag, an error will be generated.
Optionally, the command can pass one or more attribute/value pairs (in the form of variables, fields or literal values) using the attribName and attribValue parameters. You can pass as many attribute/value pairs as you want.
The following statement:
vElement:="Book"
SAX OPEN XML ELEMENT($DocRef;vElement)
... writes the following line in the document:
<Book
If an invalid character is passed in tag, an error is generated.
Product: 4D
Theme: XML SAX
Number:
853
Created: 4D 2004
SAX CLOSE XML ELEMENT
SAX OPEN XML ELEMENT ARRAYS
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)