Is there a way to use XPATH to search my xml file for TimeStamps in a certain range?
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 1
- Joined: Wed Nov 06, 2019 3:55 pm
Is there a way to use XPATH to search my xml file for TimeStamps in a certain range?
Post 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?
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Is there a way to use XPATH to search my xml file for TimeStamps in a certain range?
Hello,
Are these Unix-like timestamps, like 1573054992, or what format do they use?
For Unix timestamps it's easy:
Regards,
Adrian
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]
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Return to “General XML Questions”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service