Hello. I've just installed last version of BaseX and have built a Java
Client to access it. This is my code:

 

String query = "insert node  <patient>EOEO</patient> into
fn:doc(\"MG_USERS/58745896522DFEF.xml\")/vmr"

ClientSession cSes = new ClientSession(URL, PORT, USER, PASS);

ClientQuery cQuery = cSes.query(query);

String res = cQuery.execute();

cQuery.close();

 

And I'm getting this error:

 

[BXDB0006] Database path 'MG_USERS/58745896522DFEF.xml' must point to a
single document.

 

I'm pretty sure that there is only ONE document there, since I always
execute a DELETE MG_USERS/58745896522DFEF.xml prior of that code you see
above. Furthermore, just before executing that code, I check it with a
REST call via Internet Explorer and I get just one doc. So I don't
really understand why I get the BXDB0006 error. 

 

If I try the same but with the REST interface instead of Java Client, by
using:

 

<rest:query xmlns:rest=\"http://basex.org/rest\";>

<rest:text>

insert node  <patient>EOEO</patient> into
fn:doc(\"MG_USERS/58745896522DFEF.xml\")/vmr

</rest:text>

 

I get the same error. Could anybody help me with this, please?.

 

Thank you and best regards,

 

         C.

 

 

Carlos Marcos Lagunar

Health Technical Consultant

Research & Innovation

[email protected] <mailto:[email protected]> 

Valladolid - Spain

www.atosresearch.eu <http://www.atosresearch.eu/> 

es.atos.net

 

 

------------------------------------------------------------------
This e-mail and the documents attached are confidential and intended 
solely for the addressee; it may also be privileged. If you receive 
this e-mail in error, please notify the sender immediately and destroy it. 
As its integrity cannot be secured on the Internet, the Atos 
group liability cannot be triggered for the message content. Although 
the sender endeavours to maintain a computer virus-free network, 
the sender does not warrant that this transmission is virus-free and 
will not be liable for any damages resulting from any virus transmitted. 

Este mensaje y los ficheros adjuntos pueden contener informacion confidencial 
destinada solamente a la(s) persona(s) mencionadas anteriormente 
pueden estar protegidos por secreto profesional. 
Si usted recibe este correo electronico por error, gracias por informar 
inmediatamente al remitente y destruir el mensaje. 
Al no estar asegurada la integridad de este mensaje sobre la red, Atos 
no se hace responsable por su contenido. Su contenido no constituye ningun 
compromiso para el grupo Atos, salvo ratificacion escrita por ambas partes. 
Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor 
no puede garantizar nada al respecto y no sera responsable de cualesquiera 
danos que puedan resultar de una transmision de virus. 
------------------------------------------------------------------

<<image005.png>>

<<image006.png>>

_______________________________________________
BaseX-Talk mailing list
[email protected]
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

Reply via email to