c# - System.Data.DataSet is not Completely Reading the XML File -


i using ndbunit unit test functionality of methods , database. ndbunit work, firsts loads xml schema file (.xsd) , reads in xml file data populated database. here xml schema file messageds.xsd:

<xs:schema id="messageds"  xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"   xmlns:msprop="urn:schemas-microsoft-com:xml-msprop"  targetnamespace="http://tempuri.org/messageds.xsd"  elementformdefault="qualified"  xmlns="http://tempuri.org/messageds.xsd"  xmlns:mstns="http://tempuri.org/messageds.xsd"  xmlns:xs="http://www.w3.org/2001/xmlschema" >   <xs:element name="messageds" msdata:isdataset="true" msdata:usecurrentlocalexmlns="true" msprop:generator_messagedsname="messageds" msprop:generator_datasetname="messageds">     <xs:complextype>       <xs:choice minoccurs="0" maxoccurs="unbounded">         <xs:element name="message">           <xs:complextype>             <xs:sequence>               <xs:element name="created_at" type="xs:datetime" />               <xs:element name="subject" type="xs:string" />               <xs:element name="message" type="xs:string" />               <xs:element name="from" type="xs:string" />               <xs:element name="to" type="xs:string" />               <xs:element name="to_email" type="xs:string" />               <xs:element name="email_sent_at" type="xs:datetime" />             </xs:sequence>             <xs:attribute name="id" type="xs:int" use="required" />           </xs:complextype>         </xs:element>       </xs:choice>     </xs:complextype>   </xs:element> </xs:schema> 

here xml data file message.xml:

<messageds xlmns="http://tempuri.org/messageds.xsd">   <message id="1">     <from>test user 2</from>     <to>test user 1</to>   <message> </messageds> 

initially using dll references ndbunit downloaded source code , started debugging through problems. noticed after xml schema file read in xml file not being loaded dataset (system.data.dataset). xml written in is:

<messageds xmlns="http://tempuri.org/messageds.xsd" /> 

for reason message objects not being read xml file. i'm not sure if because xml file not created according xml schema file or else cause. tried follow examples on https://code.google.com/p/ndbunit/wiki/quickstartguide ndbunit , looked @ xml files in testing files ndbunit.

to start with, "xlmns" misspelled: <messageds xlmns="http://tempuri.org/messageds.xsd">


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -