Thomas,
>But my advice would be slightly different:
>Get away from XML and its intricacies, move to JSON for KISS reasons.
> ;-)
It's UBL. I doubt Luís is going to find many agents and processors working with JSON.
Anyway, there are other XML parsers around (the 'intricacy' comes from the the way the parser works, not from XML itself).
For instance, with Chilkat
m.xml = CREATEOBJECT("Chilkat_9_5_0.XML")
m.xml.LoadXmlFile(GETFILE("xml"))
m.OrderReference = m.xml.FindChild("cac:OrderReference")
and so on...
----------------------------------
António Tavares Lopes