Why am I able to add/store several XML with the same path?
<rest:database xmlns:rest="http://basex.org/rest" name="TRADES" resources="9 "> <rest:resource type="xml" content-type="application/xml" size="3"> henrique.xml</rest:resource> <rest:resource type="xml" content-type="application/xml" size="3"> henrique.xml</rest:resource> <rest:resource type="xml" content-type="application/xml" size="3"> henrique.xml</rest:resource> <rest:resource type="xml" content-type="application/xml" size="3"> henrique.xml</rest:resource> <rest:resource type="xml" content-type="application/xml" size="3"> henrique.xml</rest:resource> <rest:resource type="xml" content-type="application/xml" size="3"> henrique1.xml</rest:resource> <rest:resource type="xml" content-type="application/xml" size="3"> henrique2.xml</rest:resource> <rest:resource type="raw" content-type="application/xml" size="21"> henrique2.xml</rest:resource> <rest:resource type="raw" content-type="application/xml" size="21"> henrique3.xml</rest:resource> </rest:database>
Shouldn't be BaseX block it?
2012/6/20 Christian Grün christian.gruen@gmail.com
Shouldn't have a 'constraint' to avoid replacing a file? so if the path exists you can use REPLACE but not ADD or STORE cmd
I'm sorry I'm not sure what you want to know. Could you give more details? Christian