Powershell: Convert XML to String

converters, powershell, string, xml

Solution

You are probably looking for `OuterXml`.

`$xml.OuterXml` should give you what you want.

Problem

I am searching for a way to convert a XML-Object to string. Is there a way like $xml.toString() in Powershell?

Original source

Related problems