Project

General

Profile

1 14 jones
<?xml version="1.0" ?>
2
<!DOCTYPE XMLToDBMS SYSTEM "xmldbms.dtd" >
3
4
<XMLToDBMS Version="1.0">
5
   <Options>
6
   </Options>
7
   <Maps>
8
      <ClassMap>
9
         <ElementType Name="Product"/>
10
         <ToRootTable>
11
            <Table Name="Product"/>
12
            <CandidateKey Generate="Yes">
13
               <Column Name="ProductID"/>
14
            </CandidateKey>
15
            <OrderColumn Name="ProductOrder" Generate="Yes"/>
16
         </ToRootTable>
17
         <PropertyMap>
18
            <ElementType Name="Summary"/>
19
            <ToColumn>
20
               <Column Name="Summary"/>
21
            </ToColumn>
22
            <OrderColumn Name="SummaryOrder" Generate="Yes"/>
23
         </PropertyMap>
24
         <PropertyMap>
25
            <ElementType Name="Name"/>
26
            <ToColumn>
27
               <Column Name="Name"/>
28
            </ToColumn>
29
            <OrderColumn Name="NameOrder" Generate="Yes"/>
30
         </PropertyMap>
31
         <PropertyMap>
32
            <ElementType Name="Developer"/>
33
            <ToColumn>
34
               <Column Name="Developer"/>
35
            </ToColumn>
36
            <OrderColumn Name="DeveloperOrder" Generate="Yes"/>
37
         </PropertyMap>
38
         <RelatedClass KeyInParentTable="Candidate">
39
            <ElementType Name="Description"/>
40
            <CandidateKey Generate="Yes">
41
               <Column Name="ProductID"/>
42
            </CandidateKey>
43
            <ForeignKey>
44
               <Column Name="ProductID"/>
45
            </ForeignKey>
46
            <OrderColumn Name="DescriptionOrder" Generate="Yes"/>
47
         </RelatedClass>
48
      </ClassMap>
49
      <ClassMap>
50
         <ElementType Name="Item"/>
51
         <ToClassTable>
52
            <Table Name="Item"/>
53
         </ToClassTable>
54
         <PropertyMap>
55
            <PCDATA/>
56
            <ToPropertyTable KeyInParentTable="Candidate">
57
               <Table Name="ItemPCDATA"/>
58
               <CandidateKey Generate="Yes">
59
                  <Column Name="ItemID"/>
60
               </CandidateKey>
61
               <ForeignKey>
62
                  <Column Name="ItemID"/>
63
               </ForeignKey>
64
               <Column Name="ItemPCDATA"/>
65
            </ToPropertyTable>
66
            <OrderColumn Name="ItemPCDATAOrder" Generate="Yes"/>
67
         </PropertyMap>
68
         <RelatedClass KeyInParentTable="Candidate">
69
            <ElementType Name="Link"/>
70
            <CandidateKey Generate="Yes">
71
               <Column Name="ItemID"/>
72
            </CandidateKey>
73
            <ForeignKey>
74
               <Column Name="ItemID"/>
75
            </ForeignKey>
76
            <OrderColumn Name="LinkOrder" Generate="Yes"/>
77
         </RelatedClass>
78
      </ClassMap>
79
      <ClassMap>
80
         <ElementType Name="Link"/>
81
         <ToClassTable>
82
            <Table Name="Link"/>
83
         </ToClassTable>
84
         <PropertyMap>
85
            <Attribute Name="URL"/>
86
            <ToColumn>
87
               <Column Name="URL"/>
88
            </ToColumn>
89
         </PropertyMap>
90
         <PropertyMap>
91
            <PCDATA/>
92
            <ToColumn>
93
               <Column Name="LinkPCDATA"/>
94
            </ToColumn>
95
            <OrderColumn Name="LinkPCDATAOrder" Generate="Yes"/>
96
         </PropertyMap>
97
      </ClassMap>
98
      <ClassMap>
99
         <ElementType Name="Description"/>
100
         <ToClassTable>
101
            <Table Name="Description"/>
102
         </ToClassTable>
103
         <RelatedClass KeyInParentTable="Candidate">
104
            <ElementType Name="Para"/>
105
            <CandidateKey Generate="Yes">
106
               <Column Name="DescriptionID"/>
107
            </CandidateKey>
108
            <ForeignKey>
109
               <Column Name="DescriptionID"/>
110
            </ForeignKey>
111
            <OrderColumn Name="ParaOrder" Generate="Yes"/>
112
         </RelatedClass>
113
         <RelatedClass KeyInParentTable="Candidate">
114
            <ElementType Name="List"/>
115
            <CandidateKey Generate="Yes">
116
               <Column Name="DescriptionID"/>
117
            </CandidateKey>
118
            <ForeignKey>
119
               <Column Name="DescriptionID"/>
120
            </ForeignKey>
121
            <OrderColumn Name="ListOrder" Generate="Yes"/>
122
         </RelatedClass>
123
      </ClassMap>
124
      <ClassMap>
125
         <ElementType Name="Para"/>
126
         <ToClassTable>
127
            <Table Name="Para"/>
128
         </ToClassTable>
129
         <PropertyMap>
130
            <PCDATA/>
131
            <ToPropertyTable KeyInParentTable="Candidate">
132
               <Table Name="ParaPCDATA"/>
133
               <CandidateKey Generate="Yes">
134
                  <Column Name="ParaID"/>
135
               </CandidateKey>
136
               <ForeignKey>
137
                  <Column Name="ParaID"/>
138
               </ForeignKey>
139
               <Column Name="ParaPCDATA"/>
140
            </ToPropertyTable>
141
            <OrderColumn Name="ParaPCDATAOrder" Generate="Yes"/>
142
         </PropertyMap>
143
         <RelatedClass KeyInParentTable="Candidate">
144
            <ElementType Name="Link"/>
145
            <CandidateKey Generate="Yes">
146
               <Column Name="ParaID"/>
147
            </CandidateKey>
148
            <ForeignKey>
149
               <Column Name="ParaID"/>
150
            </ForeignKey>
151
            <OrderColumn Name="LinkOrder" Generate="Yes"/>
152
         </RelatedClass>
153
      </ClassMap>
154
      <ClassMap>
155
         <ElementType Name="List"/>
156
         <ToClassTable>
157
            <Table Name="List"/>
158
         </ToClassTable>
159
         <RelatedClass KeyInParentTable="Candidate">
160
            <ElementType Name="Item"/>
161
            <CandidateKey Generate="Yes">
162
               <Column Name="ListID"/>
163
            </CandidateKey>
164
            <ForeignKey>
165
               <Column Name="ListID"/>
166
            </ForeignKey>
167
            <OrderColumn Name="ItemOrder" Generate="Yes"/>
168
         </RelatedClass>
169
      </ClassMap>
170
   </Maps>
171
</XMLToDBMS>