Hallo Christian und Thomas,

Sorry for the delay too !
I was on holidays and then badly ill. something attacked my poor lungs during almost 15 days :(

It almost works now, the namespace is ok, but it seems I still write something wrong somewhere...

curl -i -X POST -H "Content-Type: application/xml" -d "<command xmlns='http://www.basex.org/rest'><text>SET CHOP false ; CREATE DATABASE DonTest DonEun/DonEun.xml</text></command>" "mingarao:********@basex.tge-adonis.fr/rest/DonTest"

I thik the path is wrong or something like that...

All the best,
Maud

On Tue, Feb 14, 2012 at 7:03 PM, Christian Grün <christian.gruen@gmail.com> wrote:
Dear Maud,

sorry for the delay... here's finally some feedback!

> I need BaseX not to chop whitespaces while creating DBs out of my XML texts.
> [...]
> But could someone please show me how to write it as a REST POST request ?

Thanks for this hint. We have decided to enhance our REST API to allow
the specification of database options. You can now add the
"chop=false" parameter to stop the whitespace normalization of
documents (I've updated the documentation [1] and latest releases
[2]).

> I looked at examples here
> http://docs.basex.org/wiki/REST#Command_Line
> but always get a "Nodes must belong to "http://www.basex.org/rest"" error...

As Thomas already noted, the namespace has changed from 7.0.2 to 7.1
(and will now stay as it is ;).

Hope this helps,
Christian

[1] http://docs.basex.org/wiki/REST
[2] http://files.basex.org/releases/latest/



--
Maud Ingarao
IHPC (UMR 5037)
Institut d’histoire de la pensée classique, de l’Humanisme aux Lumières
Ecole Normale Supérieure de Lyon - Site Descartes - Bureau R322
15 Parvis René Descartes - BP7000 - 69342 Lyon CEDEX 07
+33 4 37 37 65 79 - maud.ingarao@ens-lyon.fr

cerphi.ens-lyon.fr - pensee-classique.ens-lyon.fr
institutdesanti.ens-lyon.fr - hyperdonat.ens-lyon.fr
mutec-shs.fr - projet-plume.org - ahn.ens-lyon.fr
http://www.cahier.paris-sorbonne.fr/

- je suis absente le vendredi - out of office on Fridays -