Show/Hide Toolbars

CWT Software Configuration Handbook

Navigation: Reference Guide CWTCONFIG.XML

Automatic setting of attributes

Scroll Prev Top Next More

Some attributes values can be set automatically if not specifically defined in the configuration file. Typical attributes are identity attributes.

Example:

The tag <ARTICLE> has an automatically incremented attribute named id:

<ARTICLE name="A"/>

Article “A” was automatically given id=”0”.

<ARTICLE name=”B”/>

Article “B” was automatically given id=”1”.

<ARTICLE name=”C” id=”5”/>

Article “C” was intentionally given id=”5”.

<ARTICLE name=”D”/>

Article “D” was automatically given id=”2”.

Initially, there were two articles in the configuration file without any id defined. These articles were assigned id 0 and id 1 automatically. Article C was added later and was given id 5 in the configuration file. Finally, the article D was added without any id and was automatically assigned the next available id number through automatic incrementing.