client module

Friday, 18 July 2014 · 4 messages · last reply 22 Jul 2014
FE
Fabrice Etanchaud18 Jul 2014 12:09 #
Dear all, The client:query function seems to systematically trim text nodes For example, xml ingested with chop = false will be chopped when retrieved with client:query(). The client:execute function is ok. Best regards, Fabrice Questel/Orbit
CG
Christian Grün19 Jul 2014 11:44 #
Hi Fabrice, do you have a mini example? Christian
Quoted text · Fabrice Etanchaud · 22 lines
On Fri, Jul 18, 2014 at 12:09 PM, Fabrice Etanchaud <fetanchaud at questel.com> wrote: > Dear all, > > > > The client:query function seems to systematically trim text nodes > > For example, xml ingested with chop = false will be chopped when retrieved > with client:query(). > > The client:execute function is ok. > > > > Best regards, > > Fabrice > > Questel/Orbit > >
FE
Fabrice Etanchaud21 Jul 2014 22:39 #
Dear Christian, Here is an example :
<commands>
  <set option='chop'>false</set>
  <create-db name='test'><root> 0 1 2 3 </root></create-db>
</commands>
And then
let $conid := client:connect('localhost',1984,'admin','admin')
return client:query($conid,"db:open('test')")
returns
<root>0 1 2 3</root>
While
let $conid := client:connect('localhost',1984,'admin','admin')
return client:query($conid,"string-length(db:open('test'))")
returns 9 Best regards, Fabrice Questel/Orbit -----Message d'origine-----
Quoted text · Christian Grün · 29 lines
De : Christian Grün [mailto:christian.gruen at gmail.com] Envoyé : samedi 19 juillet 2014 11:44 À : Fabrice Etanchaud Cc : basex-talk at mailman.uni-konstanz.de Objet : Re: [basex-talk] client module Hi Fabrice, do you have a mini example? Christian On Fri, Jul 18, 2014 at 12:09 PM, Fabrice Etanchaud <fetanchaud at questel.com> wrote: > Dear all, > > > > The client:query function seems to systematically trim text nodes > > For example, xml ingested with chop = false will be chopped when > retrieved with client:query(). > > The client:execute function is ok. > > > > Best regards, > > Fabrice > > Questel/Orbit > >
CG
Christian Grün22 Jul 2014 18:09 #
Hi Fabrice, this has been fixed in the latest snapshot [1]. Thanks, Christian [1] http://files.basex.org/releases/latest/
Quoted text · Fabrice Etanchaud · 67 lines
On Mon, Jul 21, 2014 at 10:39 PM, Fabrice Etanchaud <fetanchaud at questel.com> wrote: > Dear Christian, > Here is an example : > > <commands> > <set option='chop'>false</set> > <create-db name='test'><root> 0 1 2 3 </root></create-db> > </commands> > > And then > > let $conid := client:connect('localhost',1984,'admin','admin') > return client:query($conid,"db:open('test')") > > returns > > <root>0 1 2 3</root> > > While > > let $conid := client:connect('localhost',1984,'admin','admin') > return client:query($conid,"string-length(db:open('test'))") > > returns > > 9 > > > Best regards, > Fabrice > Questel/Orbit > > -----Message d'origine----- > De : Christian Grün [mailto:christian.gruen at gmail.com] > Envoyé : samedi 19 juillet 2014 11:44 > À : Fabrice Etanchaud > Cc : basex-talk at mailman.uni-konstanz.de > Objet : Re: [basex-talk] client module > > Hi Fabrice, > > do you have a mini example? > > Christian > > On Fri, Jul 18, 2014 at 12:09 PM, Fabrice Etanchaud <fetanchaud at questel.com> wrote: >> Dear all, >> >> >> >> The client:query function seems to systematically trim text nodes >> >> For example, xml ingested with chop = false will be chopped when >> retrieved with client:query(). >> >> The client:execute function is ok. >> >> >> >> Best regards, >> >> Fabrice >> >> Questel/Orbit >> >>

⚡Generated with XQuery