Yes, Marco, that would be the case if it was not for OrderID - present only in the OrderLines parent node, so it wouldn't work for a document with multiple orders because details wouldn't be attachable to a specific order - and ItemTypeNumber - stored as an OrderLine attribute, and therefore unreachable to XMLTOCURSOR().
----------------------------------
António Tavares Lopes