about DataSet

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hello!

I'm just wonder what it means when a DataSet controller is using XML to
represent data which is stored locally ?
Assume you execute a sql statement with a select statement which cause the
DataSet to be loaded with the selected data.
So these selected data is now stored local in memory.

Does it mean that XML just describe the data that is stored local in memory
?

//Tony
 
Tony,

XML is just a set of rules how to describe data.

XML is never in memory, however in an XSD file (which is written with the
XML rules) a DataSet can be described and even can from that description
classes be build. The same is for the data which is in memory, a DataSet can
be serialized in a kind of standard way, even with DataSet.WriteXml without
you call first the XMLstream for that or any other nead to serialize.

However in memory there is in no way XML (or that should be in a string but
then it is just a data like "Tony Johansson")

Cor
 
Back
Top