Skip to content

Instantly share code, notes, and snippets.

@lmatt-bit
Created April 2, 2014 08:38
Show Gist options
  • Select an option

  • Save lmatt-bit/9930262 to your computer and use it in GitHub Desktop.

Select an option

Save lmatt-bit/9930262 to your computer and use it in GitHub Desktop.
How to apply xlst
XPathDocument myXPathDoc = new XPathDocument(myXmlFile) ;
XslCompiledTransform myXslTrans = new XslCompiledTransform();
myXslTrans.Load(myStyleSheet);
XmlTextWriter myWriter = new XmlTextWriter("result.html",null);
myXslTrans.Transform(myXPathDoc,null,myWriter);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment