Variable $returnedxml
is a sql query result forming in xml. I need to get content releasepath \sharespace est1\10.0.1212.00
from it
<ReleasePath>\sharespace est1\10.0.1212.00</ReleasePath>
我的守则如下:
$xmldoc= new-object xml.xmldocument
$xmldoc.load($Returnedxml)
$xmldoc.releasepath
这里是返回的错误警报:
Exception calling "Load" with "1" argument(s): "Could not find file C:UsersadminSystem.Xml.XmlDocument ."
At D:connecttods3andinvoke.ps1:47 char:14
+ $xmldoc.load <<<< ($Returnedxml)
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
我认为xml.xml文件是一种蚊帐,看来我错了。 因此,我可以做些什么?