The following section lists the control file tags and their usage:
Defines the Control File document. All other tags must be enclosed between <CARepository_Control> and </CARepository_Control>;
Defines the mapping of XML objects to their repository tables. Each object in the XML document can map to multiple tables in the repository so the Repository_Table tag can appear multiple times for the same object.
This groups the processing of an XML object, which is defined as any item that has an attribute defined as ID="..." providing a unique identifier to the XML document.
Describes the ID and location of XML objects.
Attribute:
keyThe key attribute in an XML object defines the ID for that particular object. If the key attribute is not present in the XML object, the ID (IdAttr) specified at the top of the XML file is taken as the default.
Groups the information to be recorded in one of the repository tables. Each object can be recorded in one or more tables in the repository.
Provides the name of the repository table that is to receive the data.
Attribute:
outputDetermines whether this entry is always created, or is dependent on the attribute data found inside the XML object. The output attribute has the following values:
Groups the recording and rule checking for a single tag in the XML stream.
Provides the tag name to search for in the XML stream. Do not include the < and > characters.
Note: Do not include the < and > characters.
Attributes:
Defines the name of the column in the repository that receives the data.
Note: Text such as descriptions, comments, and so forth are stored separately and must be specified using <TextCol>.
Specifies that the attribute contents are stored as Text. The required attribute type determines which repository text table receives the data.
Determines whether the rule for the current table (optional or choice) applies.
Attributes:
Groups the tags defining when an association or relationship is recorded in the repository. The Relationship tag encloses the definitions of the containment and split-entity associations and relationships.
Defines the name of the repository association or relationship. For relationships, you can specify that the relationship be recorded only if a corresponding Table, typically having output=optional, is being recorded.
Attributes:
Default: Standard
Defines the name of the repository entity-type (Table) that is the source end of the relationship.
Attribute:
keyThe attribute key="..." is written in the source only if it is different from ID (IdAttr). Otherwise, the ID (IdAttr) is taken as the key.
Defines the name of the repository target end of the relationship.
Attribute:
keyThe attribute key="..." is written in the target only if it is different from ID (IdAttr). Otherwise, the ID (IdAttr) is taken as the key.
Determines the type of relationship. The Type tag contains the following values:
REFERENCEThis relationship is recorded if the XML attribute or XML element points to the ID attribute elsewhere in the document and a relationship is to be created between these XML objects. Enter the XML attribute or XML element that references the ID attribute if the type is Reference. Select SrcAsRefAttr check box if source is the reference attribute in the Reference relationship. If target is the reference attribute in this relationship then do not select SrcAsRefAttr.
Note: For the relationship types - CONTAINS, SIBLINGS and REFERENCE - the KEY_GUID generated in the work tables, is either from source_id or target_id. However, for the ATPAR relationship, the KEY_GUID is generated from the RelidRef attribute.
Attribute:
SrcAsRefAttr= true /falseDetermines whether the source or the target is the reference attribute. Must be used with Type tagname when source and target are same objects
Contains the specifications for translating the content of an XML tag to the content of a repository column.
Example: true->Y; false->N.
Allows replacement of string pattern using tags FromPattern and ToPattern
For example: replace dashes on underscores
<FromPattern>-</FromPattern>
<ToPattern>_</ToPattern>
Groups a combination of Object and Attr tags to declare the source tag in the XML file.
Correspondingly groups the Table and the Column to receive the translated content.
Groups the before and after content of the mapping.
Defines the value to find in the original XML tag.
Defines the value to record in the repository column.
Defines the value of the replaced string in the original XML tag.
Defines the value of the replacing string in the repository column.
| Copyright © 2009 CA. All rights reserved. | Email CA about this topic |