如果我有一些 xml,例如:
<root>
<customers>
<customer firstname="Joe" lastname="Bloggs" description="Member of the Bloggs family"/>
<customer firstname="Joe" lastname="Soap" description="Member of the Soap family"/>
<customer firstname="Fred" lastname="Bloggs" description="Member of the Bloggs family"/>
<customer firstname="Jane" lastname="Bloggs" description="Is a member of the Bloggs family"/>
</customers>
</root>
我如何在纯 XPath(而不是 XSLT)中获得一个 xpath 表达式,该表达式检测 lastname 相同但描述不同的行?那么它会拉出上面的最后一个节点吗?