How to use XSLT and C# to transform XML

/ Published in: C#
Save to your folder(s)

Copy this code and paste it in your HTML
  1. // Load the style sheet.
  2. XslCompiledTransform xslt = new XslCompiledTransform();
  3. xslt.Load("output.xsl");
  5. // Execute the transform and output the results to a file.
  6. xslt.Transform("books.xml", "books.html");

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.