You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-cs@ibatis.apache.org by Alexey Boroday <A....@procreditbank.com.ua> on 2004/11/10 10:57:46 UTC

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).