2017-03-05 76 views
-2

我想使用powershell從工作流歷史列表的列表項中的xml字段提取ows_Occurred字段值。該XML領域的項目值爲從工作流歷史列表項字段中提取數據

XML:<z:row xmlns:z='#RowsetSchema' ows_Content TypeId='xxxx' ows_Event='5' ows_WorkflowInstance ='{xxxxx}' ows_WorkflowAssociation='{xxx}' ows_WorkflowTemplate='{yyyy}' ows_List='{xxxxx}' ows_Item='888' ows_User='8888;#AAA AAAA' ows_Occurred='2017-03-03 07:00:00' ows_Group='0' 感謝

+0

通常它應該使用$ item.Xml.row.ows_Occured從xml中獲得字段值,但在這種情況下,我在xml中看到該值,但無法檢索它。 – Nate

回答

0

$ XML = [XML] $ item.xml $ xml.row |選擇ows_Occured 或 $ XML = [XML] $ item.xml $日期= [DATETIME] $ xml.row.ows_Occurred

我必須做的XML格式的演員和獲得價值發生。

相關問題