private void ReadDataSetContent ()
{
DataTable table = dataset.Tables [XmlHelper.Decode (reader.LocalName)];
if (table == null || table.Namespace != reader.NamespaceURI) {
reader.Skip ();
reader.MoveToContent ();
return; // skip if there is no matching table
}
// skip if namespace does not match.
if (table.Namespace != reader.NamespaceURI) {
reader.Skip ();
reader.MoveToContent ();
return; // skip if there is no matching table
}
DataRow row = table.NewRow ();
ReadElement (row);
table.Rows.Add (row);
}