Hi Piotr, I have a small method DOM_validRef which basically uses this test:
if(Replace string($ref;"0";"")="") $valid:=false end if 64bit indeed uses 32 zero chars instad of 16, but this code handles both situations (and future ones, if we live long enough to make the transiton to 128bit systems...). My method also checks if all chars in the XML ref are valid hex chars (0-9 A-F), but that might be overkill. Kind regards, Koen > Op 17 dec. 2019, om 10:08 heeft Piotr Chabot Stadhouders via 4D_Tech > <4d_tech@lists.4d.com> het volgende geschreven: > > 4Dv17R6, Windows 64-bit > What is the best way to test if a XML DOM element is a Null reference? > Especially when using DOM Find XML element? -------------------- Compass bvba Koen Van Hooreweghe Kloosterstraat 65 9910 Aalter Belgium tel +32 495 511.653 ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************