Jane Doe 户供应商
我正试图弄清楚从这个XML文档中获取信息的正确XPath是什么。
<relationships>
<relationship>
<person>
<name>Jane Doe</name>
<role>Customer</role>
</person>
<person>
<name>John Doe</name>
<role>Vendor</role>
</person>
</relationship>
</relationships>
我想要得到的(我使用的是PDI(是一个类似这样的表格。
人员 | 角色 | 其他人员其他人员角色|
---|---|---|
Jane Doe | 客户 | John Doe供应商|
John Doe | 供应商 | Jane Doe客户 |
这个例子可能过于简化了,所以我的答案需要更多的工作来处理真实数据,但我要做的是获得与人相关的两行:
角色