In a TAG-field attributes can be defined.
Which meaning divers tags have or in which kind these needs to be considered can be determined here.
A tag has following structure:
<tag attribut1="wert" attribut2="wert" />
<tag attribut1='wert' attribut2='wert' />
It is important to do blanks and to set quotation marks. There should be no blanks between an attribute and the "=" character.
Quotation marks " or ' are allowed.
A mix of attributes and substructures is allowed.
<item value="A001"><itemname>My Item</itemname></item>
A mix out of substructures and content is not allowed:
Wrong: <item>A001<itemName>MyItem</itemname></item>
Correct: <item value="A001"><itemname>MyItem</itemname></item>
Correct: <item>A001</item><itemname>MyItem</itemname></item>
Functions attribute
|
|
Title
|
Example
<Itemcode Title="The Item Code">xxx</itemcode>
|
|
Quantity Char.
|
Default: LEN
Example:
<Itemcode LEN="100">xxx</Itemcode>
Define the lengh of 100 Characters.
It is working for different Column types:
string (Type=string, char, varchar, nvarchar) : define max. length
datetime:
|
|
Type
|
Default: TYPE
Example:
<Quantity TYPE="numeric">
The following types are allowed:
String: string, char, varchar, nvarchar
Datetime: datetime
All other formats are converted to numeric values.
For searching existing entries datetime is not supported.
|
|
Content
|
Default: VALUE
Example:
<itemcode>A001</itemcode>
means the same as
<itemcode value="A001"/>
|
|
Definition Name
|
Some XML files have a special construct.
Part 1: Define Field Name Index, example 0 = Itemcode, 1=Itemname
Part 2: Define The values, example: 0="A001", 1="The ItemNmae"
Example:
Name = COL_ID
Definition Name = NAME
<attrib COL_ID="0" NAME="ItemCode"/>
<attrib COL_ID="0">A001</attrib>
The field "0" gets the name "ItemCode" with the number "A001"
|
|
Expand attributes
|
Example:
<item len=30 value="A001" drawing="Z1" revision="5"/>
The following structure is created:
item
|
drawing
|
revision
|
A001
|
Z1
|
5
|
|
|
|