C
C Glenn
I'm attempting to use ReadXml. It's working in that I end up with some
data in the DataSet. But I'm not able to deal with it effectively after
that. The XML file is properly formatted in that it was created with
WriteXML, so it contains the name of the table (I've inspected it to be
sure). But after calling ReadXml the DataSet does not contain a table
with the specified name. In fact, Tables does not contain a table
corresponding to the data read with ReadXml. I know that the ReadXml is
working because I can view the data in a grid.
The line of code that this thing is choking on is:
cKey[0] = Tables["Changes"].Columns["TableName"];
At this point it tells me that Tables["Changes"] doesn't exist --
returning null.
How can I control the name of the table created when ReadXml is called
or put the data from the XML file into the previously created table that
I would like it to go in?
data in the DataSet. But I'm not able to deal with it effectively after
that. The XML file is properly formatted in that it was created with
WriteXML, so it contains the name of the table (I've inspected it to be
sure). But after calling ReadXml the DataSet does not contain a table
with the specified name. In fact, Tables does not contain a table
corresponding to the data read with ReadXml. I know that the ReadXml is
working because I can view the data in a grid.
The line of code that this thing is choking on is:
cKey[0] = Tables["Changes"].Columns["TableName"];
At this point it tells me that Tables["Changes"] doesn't exist --
returning null.
How can I control the name of the table created when ReadXml is called
or put the data from the XML file into the previously created table that
I would like it to go in?