T
Tony
Hello!
According to the documentation is the XmlDataDocument Class obsolete.
This was a useful class because of the following
"You can think of an XmlDataDocument as an XmlDocument that knows how to
communicate with a DataSet object.
The XmlDataDocument class is derived from XmlDocument class, so an
XmlDataDocument object exposes all the
same feature as an XmlDocument.
The XmlDataDocument class adds two key feature. First, it lets you easily
load the contents of a DataSet into XmlDocument, and vice versa. Second, the
XmlDataDocument also synchronizes itself with the DataSet, If the DataSet
object contains data, that same
data will be available through the XmlDataDocument object. Also, when you
change the contents of one object, that change will affect the other."
If this XmlDataDocument is removed what is the best way to use the DataSet
class as XML feature.
I could for example do the following but that is not as good as to use the
XmlDataDocument.
1. Use the WriteXml on the DataSet object to create an Xml document with the
contens of the DataSet
2.Create an XmlDocument object
3.Use the Load method on the XmlDocument object
//Tony
According to the documentation is the XmlDataDocument Class obsolete.
This was a useful class because of the following
"You can think of an XmlDataDocument as an XmlDocument that knows how to
communicate with a DataSet object.
The XmlDataDocument class is derived from XmlDocument class, so an
XmlDataDocument object exposes all the
same feature as an XmlDocument.
The XmlDataDocument class adds two key feature. First, it lets you easily
load the contents of a DataSet into XmlDocument, and vice versa. Second, the
XmlDataDocument also synchronizes itself with the DataSet, If the DataSet
object contains data, that same
data will be available through the XmlDataDocument object. Also, when you
change the contents of one object, that change will affect the other."
If this XmlDataDocument is removed what is the best way to use the DataSet
class as XML feature.
I could for example do the following but that is not as good as to use the
XmlDataDocument.
1. Use the WriteXml on the DataSet object to create an Xml document with the
contens of the DataSet
2.Create an XmlDocument object
3.Use the Load method on the XmlDocument object
//Tony