更新时间:2022-11-28 09:49:35
通过执行以下操作首先获取客户节点:
Get the customer node first by doing the following:
$customersNode = $doc.ChildNodes | ? { $_.name -eq "customers" }
现在您可以使用文档 A、B 和 C 在 $customersNode 上调用 AppendChild.
Now you can call AppendChild on $customersNode with document A, B and C.
然而,导入文档 A、B 和 C,您几乎是正确的.使用 DocumentElement 属性,如下所示:
However to import document A, B and C you almost had it right. Use the DocumentElement property like below:
$docAImported = $doc.ImportNode($docA.DocumentElement, $true)