Sample XML File
The following is an example of an XML file that defines Tag User Attributes.
It defines the following attributes and properties:
- Attribute Name
- Attribute Type
- Default Value
- Minimum value
- Maximum value
- Mandatory
<?xml version="1.0" encoding="UTF-8"?> <!--XML declaration file for the My Application resources --> <TagGroupUserAttributeList TemplateName="TagUserAttributeTemplateSample" xsi:noNamespaceSchemaLocation = "DELRobTagGroupUserAttributes.xsd" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"> <TGUserAttribute Name="TagGrpA1" Type="String" DefaultVal = "Test2" Mandatory="true"> <PossibleValues count = "4"> <PossibleValue idx = "1" value = "Test1"/> <PossibleValue idx = "2" value = "Test2"/> <PossibleValue idx = "3" value = "Test3"/> <PossibleValue idx = "4" value = "Test4"/> </PossibleValues> </TGUserAttribute> <TGUserAttribute Name="TagGrpA2" Type="Boolean" DefaultVal = "false" Mandatory="false"> <PossibleValues count = "2"> <PossibleValue idx = "1" value = "true"/> <PossibleValue idx = "2" value = "false"/> </PossibleValues> </TGUserAttribute> <TGUserAttribute Name="TagGrpA3" Type="Integer" DefaultVal = "20" Min = "10" Max = "100" Mandatory="false"/> <TGUserAttribute Name="TagGrpA4" Type="Real" DefaultVal = "6.7" Min = "0.5" Max = "10.5" Mandatory="false"/> <TGUserAttribute Name="TagGrpA5" Type="LENGTH" DefaultVal = "10mm" Min = "0mm" Max = "60mm" Mandatory="false"/> <TGUserAttribute Name="TagGrpA6" Type="ANGLE" DefaultVal = "60deg" Min = "0deg" Max = "180deg" Mandatory="false"> <PossibleValues count = "5"> <PossibleValue idx = "1" value = "5deg"/> <PossibleValue idx = "2" value = "30deg"/> <PossibleValue idx = "3" value = "45deg"/> <PossibleValue idx = "4" value = "60deg"/> <PossibleValue idx = "5" value = "85deg"/> </PossibleValues> </TGUserAttribute> <TGUserAttribute Name="TagGrpA7" Type="TIME" DefaultVal = "0s" Mandatory="false"> <PossibleValues count = "4"> <PossibleValue idx = "1" value = "0s"/> <PossibleValue idx = "2" value = "15s"/> <PossibleValue idx = "3" value = "30s"/> <PossibleValue idx = "4" value = "45s"/> </PossibleValues> </TGUserAttribute> <TGUserAttribute Name="TagGrpA8" Type="MASS" DefaultVal = "15kg" Min = "10kg" Max = "15kg" Mandatory="false"/> </TagGroupUserAttributeList>