If given a relative path, xml.Save will do nothing, giving no error messages or anything.
$xml = [xml]'<root><item>1</item></root>'
$xml.Save('.foo.xml') # Outputs nothing.
$xml.Save((join-path (pwd) -ChildPath '.foo.xml')) # Actually writes