Hi
I have the following xml structure
CONTRACTS
--CONTRACT
---SUPPLIERS
----SUPPLIER
-----SUPPLIERID
-----SUPPLIERNAME
I need to get all unique values for suppliers so I dont get the same supplier more than once. I'm using the following xpath but it's not working:
Xpath = CONTRACTS/CONTRACT/SUPPLIERS/SUPPLIER[not(SUPPLIERID= preceding-sibling::SUPPLI ER/SUPPLIERID)]")
And how can I sort by SUPPLIERNAME?
Many thanks!
I have the following xml structure
CONTRACTS
--CONTRACT
---SUPPLIERS
----SUPPLIER
-----SUPPLIERID
-----SUPPLIERNAME
I need to get all unique values for suppliers so I dont get the same supplier more than once. I'm using the following xpath but it's not working:
Xpath = CONTRACTS/CONTRACT/SUPPLIERS/SUPPLIER[not(SUPPLIERID= preceding-sibling::SUPPLI ER/SUPPLIERID)]")
And how can I sort by SUPPLIERNAME?
Many thanks!
Comment