$club = $xml.CreateElement('xi:include')
$club.SetAttribute('href','barracas')
$lookupNode.AppendChild($club) >$null
$xml.Save($config_filename)
In the above PowerShell fragment $lookupNode is the node where I am appending a newly created node $club.
What I expect is to add the line below.
<xi:include href="barracas" />
What actually I get is a line below.
<include href="barracas" xmlns="" />
The problems are:
- I need
xi:includebut it starts withinclude. - I am getting
xmlns="", which I don't need.