0
Answer

problem with result from DataSet.WriteXml

rami atedgi

rami atedgi

16y
3.5k
1

Hi,

Is anybody know pleas if the method WriteXml wrap also the ExtendeProperties that assign for each table in the dataset

for example:

///////////////////////////////////////////////
DataSet ds=new DataSet();

DataTable table_name=new DataTable();

DataTable Metadata = new DataTable();

table_name.ExtendedProperties.Add("MetaData", Metadata);

ds.Tables.Add(table_name);

MemoryStream  stream=new MemoryStream();

ds.WriteXml(stream,XmlWriteMode.WriteSchema);
//////////////////////////////////////////////////
 
now ,when I read back to dataset

another_ds.ReadXml(stream);
  
its not gave me Metadata as DataTable object,

just "Table"

Why? and how can I retraive the object i need?

Thank

Rachamim

Next Recommended Forum