After debugging a query for a while, I figured out that db:replace isn’t changing the modification date of an XML resource, when the content hasn’t changed. The case is like this:
db:replace(‘db’, ‘abc.xml’, doc(‘file:/tmp/abc.xml’))
Is that normal, or do I have an option set that results in that behavior? ADDCACHE is false.
Kendall
Exactly: Nothing will be replaced in BaseX if your source and target XML node is identical (this holds true for both documents as well as any other node in a document).
Please note that XML documents have no individual timestamps in BaseX. Instead the timestamp of the database will be changed if nodes are changed.
Cheers, Christian
On Mon, Aug 14, 2017 at 4:18 AM, Kendall Shaw kendall.shaw@workday.com wrote:
After debugging a query for a while, I figured out that db:replace isn’t changing the modification date of an XML resource, when the content hasn’t changed. The case is like this:
db:replace(‘db’, ‘abc.xml’, doc(‘file:/tmp/abc.xml’))
Is that normal, or do I have an option set that results in that behavior? ADDCACHE is false.
Kendall
basex-talk@mailman.uni-konstanz.de