Skip to content

Instantly share code, notes, and snippets.

@wullemsb
Created February 23, 2013 09:06
Show Gist options
  • Save wullemsb/5019056 to your computer and use it in GitHub Desktop.
Save wullemsb/5019056 to your computer and use it in GitHub Desktop.
var message = @"c:\message.xml";
var xslTransformation = @"c:\messagetransformation.xsl";
var xslDocument = new XslCompiledTransform();
xslDocument.Load(xslTransformation);
var stringWriter = new StringWriter();
var xmlWriter = new XmlTextWriter(stringWriter);
xslDocument.Transform(message, xmlWriter);
//Load the transformed output in a WPF WebBrowser control
webBrowser.NavigateToString(stringWriter.ToString());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment