Each despatch advice line delivered quantity SHOULD have an associated unit of measure
//cac:DespatchLine
(cbc:DeliveredQuantity/@unitCode)