ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles Bayon" <ibatis....@gmail.com>
Subject Re: Having trouble just getting sqlMap Config validated
Date Tue, 20 Jun 2006 05:28:54 GMT
You should allow association (and validation) of the schemas in VS.NET XML
editor to yours configuration files, add the schema files SqlMap.xsd,
SqlMapConfig.xsd, providers.xsd to your VS.NET installation directory.
The VS.NET directory is

C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas for VS.NET 2005
or
C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Packages\schemas\xml for VS.NET 2003
The properties file have no schema, it must just follows syntax as
<?xml version="1.0" encoding="utf-8" ?>
<XXX>
<add key="database" value="IBatisNet" />
</XXX>

Samples :
<?xml version="1.0" encoding="utf-8" ?>
<settings>
 <add key="userid" value="IBatisNet" />
 <add key="password" value="test" />
 <add key="database" value="IBatisNet" />
</settings>
or
<?xml version="1.0" encoding="utf-8" ?>
<appSettings>
 <add key="userid" value="IBatisNet" />
 <add key="password" value="test" />
 <add key="database" value="IBatisNet" />
</settings>
The last usage allows me to inccuded and shared it in the app.config with
tag syntax   <appSettings file="../properties.config">

-Gilles

Mime
View raw message