4D v14.3DOM GET XML ATTRIBUTE BY NAME |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
DOM GET XML ATTRIBUTE BY NAME
DOM GET XML ATTRIBUTE BY NAME
The DOM GET XML ATTRIBUTE BY NAME command gets the value of an attribute specified by name. Pass the reference of an XML element in elementRef and the name of the attribute that you want to know the value of in attribName. The value is returned in the attribValue parameter. 4D attempts to convert the value obtained into the same type as that of the variable passed as parameter. If no attribName attribute exists in the XML element, an error is returned. If several attributes of the XML element have the same name as that specified, only the value of the first attribute is returned. This method is used to retrieve the value of an XML attribute using its name: C_BLOB(myBlobVar) If this method is applied to the example below, $LineNum contains the value 1: If the command has been correctly executed, the system variable OK is set to 1. If an error occurs, it is set to 0. |
PROPERTIES
Product: 4D
HISTORY
Modified: 4D 2004 SEE ALSO
DOM GET XML ATTRIBUTE BY INDEX ARTICLE USAGE
4D Language Reference ( 4D v11 SQL Release 6) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||