problems with readxml VS 2002

  • Thread starter Thread starter jai hanuman
  • Start date Start date
J

jai hanuman

1) DataSet.ReadXml sometimes returns empty data set even when the file had
been written by WriteXml

2) WriteXml with WriteSchema does not write the primary key constraint in
the inline schema ?
 
If you could post your code, I could probably be a little
more specific. The first thing I'd check is the number
of rows that are being returned in any of the given
datatables. Since you are getting schema information,
you are obviously succesfully outputting the data
correctly.

If dataset.DataTables[0].Rows.Count = 0 then you won't
get any data. If you have Rows, then your problem is
elsewhere.

http://www.fawcette.com/vsm/2003_01/online/hottips/rehak/d
efault_pf.asp

If not primary key is coming in, my guess is that it may
not have been defined.

There's a good example here.

http://www.codeproject.com/aspnet/xmlguestbook.asp

If neither or these are the problem, then post the code
snippet and maybe we can figure it out.

Good Luck,

Bill

W.G. Ryan
(e-mail address removed)
www.knowdotnet.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top