The SqlMapConfig.xsd (and the others) found in the iBATIS sources have not been updated from a while. So for the moment, you must not validate your .config with them. The next version will correct this.
Sorry. -----Message d'origine----- De : Alexey Boroday [mailto:[EMAIL PROTECTED] Envoyé : mercredi 10 novembre 2004 10:58 À : [EMAIL PROTECTED] Objet : SqlMap.config and SqlMapConfig.xsd Hello. Could you tell me please - why SqlMap.config file found in NPetShop is not conform to SqlMapConfig.xsd found in iBATIS sources? I've tried to verify SqlMap.config file from NPetShop tutorial using SqlMapConfig.xsd via <http://apps.gotdotnet.com/xmltools/xsdvalidator/> and got errors: The element 'sqlMapConfig' has invalid child element 'database'. Expected 'properties'. An error occurred at , (12, 3). The element 'database' has incomplete content. Expected 'transactionManager'. An error occurred at , (15, 4). Which one should be fixed - config or xsd file? Config file is not valid because elements are accessed by full path in the iBATIS sources? E. g. XmlNode nodeDataSource = _sqlMapConfig.SelectSingleNode("/sqlMapConfig/database/dataSource"); I got exception "Object reference not set to an instance of an object." when make grammar error ("file" instead "resource") in the sqlMapElement <sqlMap file="Maps/PersonHelper.xml"/> It takes a long time to find why such strange exception is thrown with downloaded sources and debugger. Thank you. ___________________________________________________________________________ This communication is confidential and may be legally privileged. If you believe you are not an intended recipient, please inform the sender, delete the e-mail and do not copy, print or use it or disclose it to others. You can inform the sender by replying to this e-mail or by telephone (+380 44 4906080).