rami atedgi

rami atedgi

  • NA
  • 2
  • 0

problem with result from DataSet.WriteXml

Nov 26 2007 3:51 AM

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