Unique attributes and subtags.

The Latest version is 2.2
Unique attributes columns.
Some XML texts have subtags with unique attribute names - the attribute name appear only in one of the subtags. XML Marker must create a separate column for each of these attributes. Each column has only one non-blank cell.

This may lead to creating of too many attribute columns, which may leads to a confusing display. The following screenshot shows such a case:

Screenshot: too many columns.

Judging by the above example, this is not such a big problem, but some XML files can produce hundreds of these single-occupancy columns.

The solution - the unique attributes column.
To solve this problem, XML Marker consolidates such columns by replacing them with a special column titled "Unique Attributes".

This column cells contain the unique attributes of the corresponding subtags. If a subtag has exactly one unique attribute, then it's cell reads: attribute_name="attribute_value". If there is more then one, then the text is the number of unique attributes. The following screenshot is the same as the above, with this feature on:

Screenshot: the "unique attributes" feature reduces the number of columns

Unique subtags
Unique subtags works the same as unique attributes, except that the name of the columns is "Unique subtags". If the subtag has more then one occurrence then the corresponding cell will show the number of occurrences. If there is more then one unique subtag, then the corresponding cell will show the number of unique subtags, and the total number of occurrences, if different.

Turning on the unique consolidation feature
To turn on this feature, go to the options menu and select "unique consolidation". This will show a dialog that will let you allow this feature if it saves more then a set number of columns. Note that this number works separately for unique attributes and unique subtags. The default value is 2.
Login to post comments