// Creating DOM Document
XmlDocument doc = new XmlDocument();
doc.LoadXml(ds.GetXml());
//Load XSL and Tranform
XslCompiledTransform myXslTrans = new XslCompiledTransform();
string path = Directory.GetCurrentDirectory();
myXslTrans.Load(path + @”PrintView.xslt“);
// Using a StringWriter for Streaming part
StringWriter stringWriter = new StringWriter();
// The actual transformation
myXslTrans.Transform(doc.DocumentElement, null, stringWriter);
stringWriter.Flush();
// Consuming the transformed results
webBrowser1.Document.Write(stringWriter.ToString());
//doc.Save(“Example.xml”);