【发布时间】:2016-06-09 17:44:34
【问题描述】:
$club = $xml.CreateElement('xi:include')
$club.SetAttribute('href','barracas')
$lookupNode.AppendChild($club) >$null
$xml.Save($config_filename)
在上面的 PowerShell 片段中,$lookupNode 是我要附加新创建的节点 $club 的节点。
我希望在下面添加一行。
<xi:include href="barracas" />
实际上我得到的是下面的一行。
<include href="barracas" xmlns="" />
问题是:
- 我需要
xi:include,但它以include开头。 - 我收到了
xmlns="",我不需要。
【问题讨论】:
标签: xml powershell