Hi Koen,

Thanks for he snippet

>> 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

**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to