I am searching for a way to convert a XML-Object to string.
Is there a way like $xml.toString() in Powershell?
You are probably looking for OuterXml.
OuterXml
$xml.OuterXml should give you what you want.
$xml.OuterXml