$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:include
but it starts with include
.
- I am getting
xmlns=""
, which I don't need.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…