What's the non-deprecated alternative to XmlDataDocument and XslTransform?
问题 I am modifying some legacy code to try to eliminate warnings. XmlDataDocument and XslTransform both generate warnings that they are obsolete. In the case of XslTransform the suggested replacement is XslCompiledTransform , but no replacement is suggested for XmlDataDocument . How can I change this code to eliminate warnings in .NET 4: var xmlDoc = new System.Xml.XmlDataDocument(myDataSet); var xslTran = new System.Xml.Xsl.XslTransform(); xslTran.Load(new XmlTextReader(myMemoryStream), null,