Quickly apply a XSLT Transform to a XML file
Continuing the series of Powershell snippets, here’s how to apply a xslt file to a xml file:
1 2 3 |
$xslt = New-Object System.Xml.Xsl.XslCompiledTransform $xslt.Load("MyTransform.xsl") $xslt.Transform("MyXMLFile.xml","MyOutput.WhatEver") |