Calling base class method

yraykar

Freshman
Joined
Oct 13, 2003
Messages
42
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
 
Last edited:
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
 
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
 
Back
Top