[SOLVED] How can I properly create this xml file in Powershell using XmlWriter()?

Issue I want to create an xml document like this using XmlWriter() in powershell but I’m having trouble, this is the expected output: <Item version="1"> <Name>Myproject</Name> <GUID>4821CC01-CDB0-4FD7-9F1E-0B1EDF32ACE9</GUID> </Item> Current code: $xmlsettings = New-Object System.Xml.XmlWriterSettings $xmlsettings.Indent = $true $XmlWriter = [System.XML.XmlWriter]::Create("$PSScriptRoot\Myproject.xml",

Continue reading