I've the following XML:
<A>
<Lot>
<Of>
<Various>
<Parents>
<Object NodeType="UsageType">
<Property Name="Descriptor" Value="A" Type="My.DescriptorType"/>
[...]
</Object>
<Object NodeType="UsageType">
<Property Name="Descriptor" Value="B" Type="My.DescriptorType"/>
[...]
</Object>
<Object NodeType="UsageType">
<Property Name="Descriptor" Value="C" Type="My.DescriptorType"/>
[...]
</Object>
</Parents>
</Various>
</Of>
</Lot>
</A>
I'm trying to select the Object element, that has a child, with the <Property Name="Descriptor" Value="B" Type="My.DescriptorType"/>
inside.
I'm really not sure how to do this selection, because this rely on a lot of properties:
I've tried the following :
//Object[@NodeType='UsageType' and Property@Name='Descriptor' and Property@Value='B']
But it doesn't work(And I think it wouldn't ensure that it's the same "Property" that has both attributes.
Any idea how to implement this?
//Object[@NodeType='UsageType' and Property[@Name='Descriptor' and @Value='B']]