4D v16.3DOM SET XML ATTRIBUTE |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
DOM SET XML ATTRIBUTE
DOM SET XML ATTRIBUTE
The DOM SET XML ATTRIBUTE command adds one or more attributes to the XML element whose reference is passed in the elementRef parameter. It also sets the value of each attribute defined. Pass the attribute you want to set and its value respectively in the attrName and attrValue parameters (in the form of variables, fields or literal values). You can pass as many attribute/value pairs as you want.
In the following XML source: <Book> <Title>The Best Seller</Title> </Book> If the following code is executed: vAttrName:="Font" We get: <Book> <Title Font=Verdana>The Best Seller</Title> </Book> If the command has been executed correctly, the system variable OK is set to 1. Otherwise, it is set to 0 and an error is generated.
See also
DOM GET XML ATTRIBUTE BY INDEX
|
PROPERTIES
Product: 4D HISTORY
Modified: 4D v11 SQL ARTICLE USAGE
4D Language Reference ( 4D v16) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||