Text-xml
Just stumbled on this cool PowerShell method. Below is are a couple of examples of how I see myself using it:
|
73> ni -type file -value “<crap></xml>” -name “crap.xml” Directory: Microsoft.PowerShell.Core\FileSystem::C:\projects\depot\Test Mode LastWriteTime Length Name 74> test-xml .\crap.xml Directory: Microsoft.PowerShell.Core\FileSystem::C:\projects\depot\Test Mode LastWriteTime Length Name 76> test-xml .\valid.xml |
This will help me out when I fiddling around with all the nAnt build scripts I seem to be playing with these days!