KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Note: Enhanced Tools for Reading XML Attributes
PRODUCT: 4D | VERSION: 2004 | PLATFORM: Mac & Win
Published On: November 29, 2006
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

XML element's may have any number of attributes, such as the id attribute in the contact element shown below:

  <contact id="1">

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