DataSet dstEmailList;
dstEmailList.ReadXml(@cEmailListXmlFileName);
// The cEmailListXmlFileName has a valid XML file name.
The problem is that the above code ignores the XSD file completely. I tried to modify the XSD file entering some garbage but I get no error on the ReadXml. The main issue is that the data types are not set correctly in the dataset because they are specified in the XSD file, which is being ignored.<?xml version="1.0" encoding="utf-8" ?> <EmailList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="EmailList.xsd" >Here is the top of the EmailList.xsd file:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" > <xsd:element name="EmailList">Do you see anything wrong in the above code or the XML files?