|
Question : Difference between XmlDocument and XmlDataDocument in .NET
|
|
Could you please anybody tell me what is difference between XmlDocument class and XmlDataDocument class?? When we use XmlDocument and XmlDataDocment?
thanks in advance,
Senthil
|
|
Answer : Difference between XmlDocument and XmlDataDocument in .NET
|
|
XmlDocument represents an XML document
XmlDataDocument allows structured data to be stored, retrieved, and manipulated through a relational DataSet
XMLDataDocument is an extension of the XMLDocument base class and can be used to mix XML and relational views of the underlying data.
You would use XMLDataDocument as you would do when trying to manipulate a database table through a dataset - you pass the table into the dataset and can then use the dataset in tables/ dropdownlists etc. See the following article for more info on how to use it: http://www.vbip.com/books/1861005555/chapter_5555_05.asp
Finally, a lot of websites will recommend against using the XMLDocument class and to use XMLReader instead if you want to read information only from an XML doc.
Hope this helps, mcg
|
|
|
|