1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <xs:schema targetNamespace=
"http://ibatis.apache.org/dataMapper"
3 elementFormDefault=
"qualified"
4 xmlns:
mstns=
"http://tempuri.org/XMLSchema.xsd"
5 xmlns:
xs=
"http://www.w3.org/2001/XMLSchema"
6 xmlns=
"http://ibatis.apache.org/dataMapper"
7 xmlns:
vs=
"http://schemas.microsoft.com/Visual-Studio-Intellisense"
8 vs:
friendlyname=
"iBATIS.NET DataMapper Configuration Schema"
9 vs:
ishtmlschema=
"false"
10 vs:
iscasesensitive=
"true"
11 vs:
requireattributequotes=
"true"
12 vs:
defaultnamespacequalifier=
""
13 vs:
defaultnsprefix=
"">
17 DataMapper XML Schema Definition
20 <xs:element name=
"typeAlias">
22 <xs:attribute name=
"alias" type=
"xs:string" use=
"required"/>
23 <xs:attribute name=
"type" type=
"xs:string" use=
"required"/>
26 <xs:element name=
"typeHandler">
28 <xs:attribute name=
"type" type=
"xs:string"/>
29 <xs:attribute name=
"dbType" type=
"xs:string"/>
30 <xs:attribute name=
"callback" type=
"xs:string"/>
33 <xs:element name=
"typeHandlers">
36 <xs:element ref=
"typeHandler" maxOccurs=
"unbounded"/>
40 <xs:element name=
"alias">
43 <xs:element ref=
"typeAlias" maxOccurs=
"unbounded"/>
47 <xs:element name=
"dataSource">
49 <xs:attribute name=
"name" type=
"xs:string" use=
"required"/>
50 <xs:attribute name=
"connectionString" type=
"xs:string" use=
"required"/>
53 <xs:element name=
"database">
56 <xs:element ref=
"provider"/>
57 <xs:element ref=
"dataSource"/>
61 <xs:element name=
"properties">
64 <xs:element ref=
"property" minOccurs=
"0" maxOccurs=
"unbounded"/>
66 <xs:attribute name=
"resource" type=
"xs:string"/>
67 <xs:attribute name=
"url" type=
"xs:string"/>
68 <xs:attribute name=
"embedded" type=
"xs:string"/>
71 <xs:element name=
"property">
73 <xs:attribute name=
"resource" type=
"xs:string"/>
74 <xs:attribute name=
"url" type=
"xs:string"/>
75 <xs:attribute name=
"embedded" type=
"xs:string"/>
76 <xs:attribute name=
"key" type=
"xs:string"/>
77 <xs:attribute name=
"value" type=
"xs:string"/>
80 <xs:element name=
"provider">
82 <xs:attribute name=
"name" type=
"xs:string" use=
"required"/>
85 <xs:element name=
"setting">
87 <xs:attribute name=
"useStatementNamespaces" type=
"xs:string" default=
"false"/>
88 <xs:attribute name=
"cacheModelsEnabled" type=
"xs:string"/>
89 <xs:attribute name=
"validateSqlMap" type=
"xs:string" default=
"false"/>
90 <xs:attribute name=
"useEmbedStatementParams" type=
"xs:boolean" default=
"false"/>
91 <xs:attribute name=
"useReflectionOptimizer" type=
"xs:boolean" default=
"true"/>
94 <xs:element name=
"settings">
97 <xs:element ref=
"setting" maxOccurs=
"unbounded"/>
101 <xs:element name=
"sqlMap">
103 <xs:attribute name=
"resource" type=
"xs:string"/>
104 <xs:attribute name=
"url" type=
"xs:string"/>
105 <xs:attribute name=
"embedded" type=
"xs:string"/>
108 <xs:element name=
"providers">
110 <xs:attribute name=
"resource" type=
"xs:string"/>
111 <xs:attribute name=
"url" type=
"xs:string"/>
112 <xs:attribute name=
"embedded" type=
"xs:string"/>
120 <xs:element name=
"sqlMapConfig">
121 <xs:complexType mixed=
"true">
123 <xs:element ref=
"properties" minOccurs=
"0"/>
124 <xs:element ref=
"settings" minOccurs=
"0"/>
125 <xs:element ref=
"providers" minOccurs=
"0"/>
126 <xs:element ref=
"database" minOccurs=
"0"/>
127 <xs:element ref=
"alias" minOccurs=
"0"/>
128 <xs:element ref=
"typeHandlers" minOccurs=
"0"/>
129 <xs:element ref=
"sqlMaps" minOccurs=
"0"/>
133 <xs:element name=
"sqlMaps">
136 <xs:element ref=
"sqlMap" maxOccurs=
"unbounded"/>