yraykar Posted December 27, 2003 Posted December 27, 2003 (edited) Hi All, I am using VS.NET 2003. I have a class which is derived from DataSet class. I have some methods in it both overridden and new methods. I am facing the problem when i try to use ReadXml method of the base class. The ReadXml method of the base class is not overridden. When i say, derivedclassObject.ReadXml("Data.xml"); It reads nothing, the Rows.Count property is zero. The Data.xml file infact has more than one table and each table atleast has 1 row. The same file if used in dataset objects readxml method it reads properly and the data is loaded onto the dataset. Please help me out. I think i am wrong when i am trying to call the base class method. Regards Yashasvi Edited December 27, 2003 by yraykar Quote
Administrators PlausiblyDamp Posted December 27, 2003 Administrators Posted December 27, 2003 Could you show us a bit of code? How is the overriden method declared and how are you calling it? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
yraykar Posted December 28, 2003 Author Posted December 28, 2003 Re: Overriding Hi PlausiblyDamp, Thanks for the reply. I am not overriding the method ReadXml in my derived class. This method is not populating the data from the XML file in my derived class. Where as when i use dataset class to get values into dataset from the same XML file it works properly. This is happening even though i have not overrided the method. Please help me. Regards, Yashasvi Quote
Administrators PlausiblyDamp Posted December 28, 2003 Administrators Posted December 28, 2003 Is your derived class using a XSD file or have you already loaded a schema? If so do the DataTable names match up with the ones in the XML file? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
yraykar Posted December 29, 2003 Author Posted December 29, 2003 Re:XML Schema Hi PlausiblyDamp, Yes i checked up the schema. The namespace and other things were not matching. I have corrected it but still i get the same problem. Regards Yashasvi Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.