Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (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 by yraykar
Posted

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...