Hi,
this is true, we are aware of this issue as again the standard leaves it to the implementation to deal with such cases.
For the moment it just adds another document to the database (thus making it a collection). As a workaround you could however delete the old document first and add it afterwards, but you probably thought of that yourself.
I guess for the moment you could also use XQuery Update to achieve this behaviour with replace() - perhaps Lukas has a quick snippet for you?
One might think of adding a `replace doc.xml with path/to/new/doc.xml` command to make the database behave as desired. Feedback/Thoughts on this issue are welcome.
Am 11.08.2010 um 11:09 schrieb Hans-Peter Oeri:
Hi!
Another thought: ADD doc.xml does neither throw an error nor actually replace a pre-existing doc.xml.
It would probably be nice if ADD intrinsically replaced a pre-existing document?
HP
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk