1. Extract high-volume orders
| Order ID |
| ORD-002 |
| ORD-004 |
=IMPORTXML("https://sales-api.example.com/orders.xml", "//order[units>10]/orderId")Result: {ORD-002, ORD-004}
The XPath expression //order[units>10]/orderId selects all order IDs where units exceed 10. In the retail dataset, two orders qualify: ORD-002 (12 units) and ORD-004 (15 units). IMPORTXML returns these IDs as a vertical array.