XML element's may have any number of attributes, such as the id attribute in the contact element shown below:
The DOM (Document Object Model) section of the 4th Dimension language contains three commands for counting and reading XML attributes, listed below:
DOM Count XML attributes
DOM GET XML ATTRIBUTE BY INDEX
DOM GET XML ATTRIBUTE BY NAME
This technical note and the accompanying sample database add a number of enhancements and refinements to these basic commands.
Download Complete Tech Note and Example: Windows | Mac