I’m learning PowerShell. I can load an xml file into a variable and manipulate it. I can then call the object’s save method to save to disk. I expected there to be a way to output the resulting xml to screen, though. I can’t seem to find one. Is there a way, other than outputting to file and then file-to-screen?
Share
Look at PSCX module. You will find
Format-Xmlcmdlet that does exactly that.Example:
will produce:
For more info look at
help format-xml -full