-2

Visual c# 2010 Express says that XmlDocument is obsolete, will this class be removed in the following versions of c# ?

2 Answers2

2

XmlDocument is not marked as obsolete infact it is supported in .Net framework 4.5 as well. May be you are getting the warning on XmlDataDocument, which is marked as obsolete.

Habib
  • 219,104
  • 29
  • 407
  • 436
  • XMLDataDocument is [documented in .Net framework 4.5](http://msdn.microsoft.com/en-us/library/system.xml.xmldatadocument(v=vs.110).aspx) so its not going anywhere in near future, but you can't be 100% sure as .Net framework 4.5 is in beta version, its better if you move to newer constructs – Habib Aug 06 '12 at 06:40
0

I am using .Net Framework 4.0 in Visual Studion 2010 Ultimate and it is not marked as Obsolete here. Like Habib answer said its XmlDataDocument you might be looking at.

Moreover, marking a class as obsolete does not mean that it will immediately be removed from environment. Its just means that a replacement is there and we should use that replacement because obsolete class will be deleted from future releases. If you keep using it, you will have to change your code for future environments.

Nikhil Agrawal
  • 47,018
  • 22
  • 121
  • 208