I get this error when i try to run my app after making the changes...

===
Invalid SqlMap.config document. cause :The
'SqlMapConfig.xsd:sqlMapConfig' element is not declared. An error
occurred at , (1, 2).
The 'SqlMapConfig.xsd:settings' element is not declared. An error
occurred at , (1, 144).
The 'SqlMapConfig.xsd:setting' element is not declared. An error
occurred at , (1, 154).
The 'useStatementNamespaces' attribute is not declared. An error
occurred at , (1, 162).
The 'SqlMapConfig.xsd:setting' element is not declared. An error
occurred at , (1, 195).
The 'cacheModelsEnabled' attribute is not declared. An error occurred
at , (1, 203).
The 'SqlMapConfig.xsd:properties' element is not declared. An error
occurred at , (1, 244).
The 'embedded' attribute is not declared. An error occurred at , (1, 255).
The 'SqlMapConfig.xsd:providers' element is not declared. An error
occurred at , (1, 300).
The 'embedded' attribute is not declared. An error occurred at , (1, 310).
The 'SqlMapConfig.xsd:database' element is not declared. An error
occurred at , (1, 356).
The 'SqlMapConfig.xsd:provider' element is not declared. An error
occurred at , (1, 366).
The 'name' attribute is not declared. An error occurred at , (1, 375).
The 'SqlMapConfig.xsd:dataSource' element is not declared. An error
occurred at , (1, 393).
The 'name' attribute is not declared. An error occurred at , (1, 404).
The 'connectionString' attribute is not declared. An error occurred at
, (1, 416).
The 'SqlMapConfig.xsd:sqlMaps' element is not declared. An error
occurred at , (1, 469).
The 'SqlMapConfig.xsd:sqlMap' element is not declared. An error
occurred at , (1, 478).
The 'embedded' attribute is not declared. An error occurred at , (1, 485).
===

Any suggestions? Did I miss something?

Larry

On 6/3/05, Ron Grabowski (JIRA) <ibatis-dev@incubator.apache.org> wrote:
>     [ 
> 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