Answer the question
In order to leave comments, you need to log in
XPath and dates, is it possible to do conditional queries?
I looked at the examples , it is clearly possible to make requests of the form:
author[last-name = "Bob" and ../price > 50]
All elements that have a child element with a value of Bob and a sibling element with a value greater than 50.
Answer the question
In order to leave comments, you need to log in
Yes. You can make requests, including rather complex ones, to xml.
Yes. And the numbers will be ok. And with strings too.
Well... and dates too. It will be difficult for us, but we will manage.
But why?
XML was not created as a solution to the data storage problem.
It is not intended for this.
Databases are designed to store data.
Records of the form "date + a couple of numbers + comment" really look organic in it, exactly like records of any other type and structure.
But records of this kind in the database table will be presented more organically.
For all its shortcomings over databases, xml does not provide any advantages over them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question