我有一个这样的 XML:
<document>
<FileDetails>
</FileDetails>
<Clients>
<Client>
<ClientDetails>
<clientName>xxxx</clientName>
<clientContact>xxxx</clientContact>
<clientContactEmail>info@xxxx.com</clientContactEmail>
<clientTelephone>xxxx</clientTelephone>
</ClientDetails>
<properties>
<Property>
<propertyid>Foo1</propertyid>
<category>Commercial</category>
</Property>
<Property>
<propertyid>Foo2</propertyid>
<category>Residential</category>
</Property>
<Property>
<propertyid>Foo3</propertyid>
<category>Residential</category>
</Property>
</properties>
</Client>
</Clients>
</document>
如何检索具有名为“propertyid”且值为 Foo1 的子对象的属性?