4D v14.3DOM SET XML ELEMENT NAME |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
DOM SET XML ELEMENT NAME
DOM SET XML ELEMENT NAME
The DOM SET XML ELEMENT NAME command modifies the name of the element set by elementRef. Pass the reference of the element to rename in elementRef and the new name of the element in elementName. The command also takes charge of updating the open and close tags of the element. In the following XML source: <Book> <Title>The Best Seller</Title> </Book> If the following code is executed, with vElemRef containing the reference to the ‘Book’ element: DOM SET XML ELEMENT NAME(vElemRef;"BestSeller") We get: <BestSeller> <Title>The Best Seller</Title> </BestSeller> If the command was executed correctly, the system variable OK is set to 1. Otherwise, it is set to 0 and an error is generated. An error is generated when:
|
PROPERTIES
Product: 4D
HISTORY
Created: 4D 2004 SEE ALSO ARTICLE USAGE
4D Language Reference ( 4D v11 SQL Release 6) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||