Hi Christian and thanks for your reply. Here is the answer:

 

Input Path                    Type  Content-Type     Size 

---------------------------------------------------------

MG_USERS/58745896522DFEF.xml  xml   application/xml  3    

 

1 Resources.

 

Does this mean that I have 3 xml with the same name and the same path?  O_o   But with the REST interface I’m getting just one!.

 

Thanks again and best regards,

 

          C.

 

From: Christian Grün [mailto:christian.gruen@gmail.com]
Sent: lunes, 11 de marzo de 2013 16:24
To: Carlos MARCOS LAGUNAR
Cc: BaseX
Subject: Re: [basex-talk] Java Client - Error BXDB0006 while accessing a single document

 

Hola Carlos,

 

could you try the list command [1,2] with MG_USERS as argument, and tell us what it prints?

 

Thanks,

Christian

 

[1] http://docs.basex.org/wiki/Commands#LIST

[2] http://docs.basex.org/wiki/Database_Module#db:list

 

 

 

On Mon, Mar 11, 2013 at 1:13 PM, Carlos MARCOS LAGUNAR <carlos.marcos@atosresearch.eu> wrote:

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.

 

blue_strip_201

Carlos Marcos Lagunar

Health Technical Consultant

Research & Innovation

carlos.marcos@atosresearch.eu

Valladolid - Spain

www.atosresearch.eu

es.atos.net

Atos_Olympic_Games_Logo_signature

 

 

------------------------------------------------------------------
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.
------------------------------------------------------------------


_______________________________________________
BaseX-Talk mailing list
BaseX-Talk@mailman.uni-konstanz.de
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

 

 
------------------------------------------------------------------
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.
------------------------------------------------------------------