Page 1 of 1
Is there a way to use XPATH to search my xml file for TimeStamps in a certain range?
Posted: Wed Nov 06, 2019 4:00 pm
by doanphan111
I have an XML document that contains elements that have an attribute TimeStamp. Is there a way to use XPATH to search my xml file for TimeStamps in a certain range?
Re: Is there a way to use XPATH to search my xml file for TimeStamps in a certain range?
Posted: Wed Nov 06, 2019 6:52 pm
by adrian
Hello,
Are these Unix-like timestamps, like 1573054992, or what format do they use?
For Unix timestamps it's easy:
Code: Select all
*[xs:long(@TimeStamp) > 1573054992 and xs:long(@TimeStamp) < 1573054990]
Regards,
Adrian