0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

PowerShell で XSLT を使い XML を変換する

Posted at

自分用の備忘に。

ググると XSLT での変換サービスは割とあるが、ローカルで変換したかったので。

$xslt = New-Object -TypeName System.Xml.Xsl.XslCompiledTransform
$xslt.Load('xslt.xsl')
$xslt.Transform('convert_from.xml', 'convert_to.xml')

これで、 xslt.xsl を使い convert_from.xml を変換して convert_to.xml に書いてくれる。

XslCompiledTransform.Transform メソッドの他のオーバーロードを使えば、用途も広がりそう?

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?