嗨,鉴于我有这个XML
<Workflow>
<WorkflowDefinitionCode>WFDC</WorkflowDefinitionCode>
<Property>
<NameValue name="Status" type="StringType" />
</Property>
<Property>
<NameValue name="Products" type="StringType" />
</Property>
<Property>
<NameValue name="Description" type="StringType" />
</Property>
<Property>
<NameValue name="QuoteID" type="StringType" />
</Property>
<Property>
<NameValue name="LogicalID" type="StringType" />
</Property>
<Property>
<NameValue name="TotalAmount" type="StringType" />
</Property>
<Property>
<NameValue name="DiscountRequest" type="StringType" />
</Property>
<Property>
<NameValue name="AssignedTo" type="StringType" />
</Property>
<Property>
<NameValue name="ItemName" type="StringType" />
</Property>
<Property>
<NameValue name="CustomerName" type="StringType" />
</Property>
<Property>
<NameValue name="Approval" type="StringType" />
</Property>
<Property>
<NameValue name="QuoteString" type="StringType" />
</Property>
</Workflow>
如何使用其名称=&#39;状态&#39;
等属性值选择节点NameValue我尝试使用/Workflow/Property/NameValue[@name='Products']
但它总是选择第一个NameValue节点,而不管我在这个例子中放在Xpath上的属性值&#34; Products&#34;
你有什么想法吗?