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.comwrote:
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/