Transform: Formats the XML document using the specified System.Xml.Xsl.XslTransform object. But if you use System.Xml.Xsl.XslTransform you get the warning: System.Xml.Xsl.XslTransform' is obsolete: 'This class has been deprecated. How do you use this class now? Is it also obsolete?