Return-Path: Delivered-To: apmail-ibatis-dev-archive@www.apache.org Received: (qmail 82406 invoked from network); 10 Jun 2005 21:25:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Jun 2005 21:25:00 -0000 Received: (qmail 3592 invoked by uid 500); 10 Jun 2005 21:25:00 -0000 Delivered-To: apmail-ibatis-dev-archive@ibatis.apache.org Received: (qmail 3561 invoked by uid 500); 10 Jun 2005 21:24:59 -0000 Mailing-List: contact dev-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ibatis.apache.org Delivered-To: mailing list dev@ibatis.apache.org Received: (qmail 3531 invoked by uid 99); 10 Jun 2005 21:24:57 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of larry.meadors@gmail.com designates 64.233.162.205 as permitted sender) Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.205) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 10 Jun 2005 14:24:55 -0700 Received: by zproxy.gmail.com with SMTP id 9so853395nzo for ; Fri, 10 Jun 2005 14:24:36 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=P0sTgSzim7QwgcN20x5fpQCPjLs5JPyzRuoqx1bYviS5MQC01Lme8frh6uR2n7Q9+8o15aKktFaRUWVtcOmPd0/VlvlJxkkK5shaKNruuHm3mUGeBTCeU0oEZEBvdA/83LFpkF5+rwMB2za7BHgD9nFGubF9ha2RfsVPItDQDvA= Received: by 10.36.221.15 with SMTP id t15mr722349nzg; Fri, 10 Jun 2005 14:24:36 -0700 (PDT) Received: by 10.36.89.18 with HTTP; Fri, 10 Jun 2005 14:24:36 -0700 (PDT) Message-ID: Date: Fri, 10 Jun 2005 15:24:36 -0600 From: Larry Meadors Reply-To: lmeadors@apache.org To: dev@ibatis.apache.org Subject: Re: [jira] Commented: (IBATISNET-77) Allow Intellisense in Visual Studio 2003 for SqlMap/Dao.config/SqlMap.config files In-Reply-To: <415321553.1117808521133.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1328153997.1117752132443.JavaMail.jira@ajax.apache.org> <415321553.1117808521133.JavaMail.jira@ajax.apache.org> X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I get this error when i try to run my app after making the changes... =3D=3D=3D 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). =3D=3D=3D Any suggestions? Did I miss something? Larry On 6/3/05, Ron Grabowski (JIRA) wrote: > [ http://issues.apache.org/jira/browse/IBATISNET-77?page=3Dcomments#a= ction_67013 ] >=20 > Ron Grabowski commented on IBATISNET-77: > ---------------------------------------- >=20 > This works correctly in VS (I was even able to modify the xsd to show a t= rue/false drop down for s nodes) but after XmlValidatingReader cor= rectly validates sqlMap.config, calls to SelectSingleNode("sqlMapConfig") a= lways 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 tack= le this: >=20 > http://www.springframework.net/doc/reference/html/vsnet.html > http://www.springframework.net/xsd/spring-objects.xsd >=20 > Very frusrating... >=20 > > Allow Intellisense in Visual Studio 2003 for SqlMap/Dao.config/SqlMap.c= onfig 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 >=20 > > > > The following instructions will enable Intellisense in your SqlMaps, Sq= lMap.config, and Dao.config files. Based off of the Nant Visual Studio Int= ellisense integration how-to at [http://nant.sourceforge.net/faq.html#enabl= e-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 t= ypically located at C:\program files\Microsoft Visual Studio .NET 2003\Comm= on7\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 be= low. > > 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 O= pen With. You may wish to make this the default method to avoid having to = use Open With every time. > > Step 6: > > Enjoy! > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > > SqlMapConfig Start > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > > [SqlMapConfig.xsd] > > Before: > > > > After: > > > > [SqlMap.config] > > Before: > > > > After: > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > > SqlMapConfig Finish > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > > SqlMap Start > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > > [SqlMap.xsd] > > Before: > > > > After: > > > > [YourSqlMap.xml] > > Before: > > > > After: > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > > SqlMap Finish > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > > Dao Start > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > > [DaoConfig.xsd] > > Before: > > > > After: > > > > [Dao.config] > > Before: > > > > After: > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > > Dao Finish > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D >=20 > -- > 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 >=20 >