4D v13.4DOM SET XML ATTRIBUTE |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
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. |
PROPERTIES
Product: 4D
INDEX HISTORY
Modified: 4D v11 SQL SEE ALSO
DOM GET XML ATTRIBUTE BY INDEX |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||