1

在函数中格式化 xml 时出错:

$newXml = @'
<bindings>
<basicHttpBinding>
</basicHttpBinding>
</bindings>
'@

+     $newXml =  <<<< @', is missing the terminator: '@.
4

1 回答 1

2

两件事与here字符串。确保 . 之后@'没有空格, . 之前没有空格'@。也就是说,关闭终止符必须从第 0 列开始。

于 2012-05-01T19:21:20.013 回答