Several questions have appeared recently in various forums about how the output of an XSLT transformation can be handled in the .NET platform. To help answer some of these questions, this sample application demonstrates several different ways to work with the XslTransform class located in the System.Xml.Xsl namespace. Specifically, you will see how to use the StringWriter, XmlTextWriter, XmlReader, and MemoryStream classes to capture the output of an XSLT transformation. By understanding how to work with these different classes you can choose the most appropriate class to use in your applications.
|