4D v13.4DOM Count XML attributes |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
DOM Count XML attributes
DOM Count XML attributes
The DOM Count XML attributes command returns the number of XML attributes present in the XML element designated by elementRef. For more information about XML attributes, refer to the Overview of XML DOM Commands section. Before retrieving the values of elements in an array, you want to know the number of attributes in the following XML element: C_BLOB(myBlobVar) In the above example, $numAttributes equals 3, tAttrib{1} contains “Font”, tAttrib{2} contains “N”, tAttrib{3} contains “size” and tValAttrib contains “Verdana”, “1” and “10”. Note: The index number does not correspond to the location of the attribute in the XML file displayed in text form. In XML, the index of an attribute indicates its position among the attributes arranged in alphabetical order (according to their name). 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
INDEX HISTORY
Modified: 4D 2004 SEE ALSO |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||