[ 
http://issues.apache.org/jira/browse/IBATISNET-77?page=comments#action_67013 ] 

Ron Grabowski commented on IBATISNET-77:
----------------------------------------

This works correctly in VS (I was even able to modify the xsd to show a 
true/false drop down for <setting>s nodes) but after XmlValidatingReader 
correctly validates sqlMap.config, calls to SelectSingleNode("sqlMapConfig") 
always return null. Build() throws a NullReferenceException. I studied the  
NAnt and NHibernate xsd files and they all look  the same. Everything looks 
correct to me.  Here's some additional links in case someone wants to tackle 
this:

 http://www.springframework.net/doc/reference/html/vsnet.html
 http://www.springframework.net/xsd/spring-objects.xsd

Very frusrating...

> Allow Intellisense in Visual Studio 2003 for SqlMap/Dao.config/SqlMap.config 
> files
> ----------------------------------------------------------------------------------
>
>          Key: IBATISNET-77
>          URL: http://issues.apache.org/jira/browse/IBATISNET-77
>      Project: iBatis for .NET
>         Type: Improvement
>  Environment: Windows Platform, Visual Studio.NET 2003
>     Reporter: Chad Humphries
>     Assignee: Gilles Bayon
>     Priority: Trivial

>
> The following instructions will enable Intellisense in your SqlMaps, 
> SqlMap.config, and Dao.config files.  Based off of the Nant Visual Studio 
> Intellisense integration how-to at 
> [http://nant.sourceforge.net/faq.html#enable-intellisense].
> Step 1:
> Make sure you have Visual Studio.net 2003 closed.  Locate the xsd files.  
> Typically they are in the following locations if you have downloaded the 
> source.
> SqlMapConfig.xsd, SqlMap.xsd
> [SourceFolder]\mapper\IBatisNet.DataMapper
> DaoConfig.xsd
> [SourceFolder]\mapper\IBatisNet.Schemas
> Step 2:
> Copy the xsd files to your Visual Studio 2003 Schema Folder.  This is 
> typically located at C:\program files\Microsoft Visual Studio .NET 
> 2003\Common7\Packages\schemas\xml.
> Step 3:
> Open the XSD files to make the changes below to them.
> Step 4:
> Open your dao.config, sqlmaps, or sqlmap.config and make the changes below.
> Step 5:
> Open Visual Studio 2003.  Make sure you have set Visual Studio to open your 
> SqlMap.config, Dao.Config, and Sqlmaps with HTML/XML Editor.  You can find 
> this by right-clicking on the file in Solution Explorer and choosing Open 
> With.  You may wish to make this the default method to avoid having to use 
> Open With every time.
> Step 6:
> Enjoy!
> ========================
> SqlMapConfig Start
> ========================
> [SqlMapConfig.xsd]
> Before:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
> elementFormDefault="qualified">
> After:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
> elementFormDefault="qualified" targetNamespace="SqlMapConfig.xsd" >
> [SqlMap.config]
> Before:
> <sqlMapConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:noNamespaceSchemaLocation="SqlMapConfig.xsd">
> After:
> <sqlMapConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:noNamespaceSchemaLocation="SqlMapConfig.xsd" xmlns="SqlMapConfig.xsd">
> ========================
> SqlMapConfig Finish
> ========================
> ========================
> SqlMap Start
> ========================
> [SqlMap.xsd]
> Before:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
> elementFormDefault="qualified" >
> After:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
> elementFormDefault="qualified" targetNamespace="SqlMap.xsd" >
> [YourSqlMap.xml]
> Before:
> <sqlMap namespace="example" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:noNamespaceSchemaLocation="SqlMap.xsd">
> After:
> <sqlMap namespace="example" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:noNamespaceSchemaLocation="SqlMap.xsd" xmlns="SqlMap.xsd">
> ========================
> SqlMap Finish
> ========================
> ========================
> Dao Start
> ========================
> [DaoConfig.xsd]
> Before:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
> elementFormDefault="qualified" >
> After:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
> elementFormDefault="qualified" targetNamespace="DaoConfig.xsd" >
> [Dao.config]
> Before:
> <daoConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:noNamespaceSchemaLocation="DaoConfig.xsd">
> After:
> <daoConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:noNamespaceSchemaLocation="DaoConfig.xsd" xmlns="DaoConfig.xsd">
> ========================
> Dao Finish
> ========================

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to