No namespace for multiple commands in POST?

Saturday, 26 November 2016 · 2 messages · last reply 27 Nov 2016
AL
Arjan Loeffen26 Nov 2016 15:04 #

I'm trying to REST POST a sequence of commands in accordance with

http://docs.basex.org/wiki/Commands#XML_Syntax

I get the error response:

*cvc-elt.1: Cannot find the declaration of element 'commands'.*

Is there a namespace for <commands> wrapper element? I'd expect it to be

http://basex.org/rest

but the same message is returned on the qualified name:

*cvc-elt.1: Cannot find the declaration of element 'basex:commands'.*

Using Basex 8.5.3

Thanks in advance,

-- Arjan Loeffen, Armatiek BV 06-12918997
CG
Christian Grün27 Nov 2016 18:50 #

Hi Arjan,

I agree it would be nice to have support for multiple commands in REST. As such an extension has been asked for more than once, I have now added a new GitHub issue for your request [1].

The REST API was defined some years before the introduction of XML command scripts; that’s the main reason why the syntax differs so much.

All the best, Christian

[1] https://github.com/BaseXdb/basex/issues/1393

2016-11-26 15:04 GMT+01:00 Arjan Loeffen <arjan.loeffen at armatiek.nl>:

Quoted text · Arjan Loeffen · 23 lines
> I'm trying to REST POST a sequence of commands in accordance with > > http://docs.basex.org/wiki/Commands#XML_Syntax > > I get the error response: > > cvc-elt.1: Cannot find the declaration of element 'commands'. > > Is there a namespace for <commands> wrapper element? I'd expect it to be > > http://basex.org/rest > > but the same message is returned on the qualified name: > > cvc-elt.1: Cannot find the declaration of element 'basex:commands'. > > Using Basex 8.5.3 > > Thanks in advance, > > -- > Arjan Loeffen, Armatiek BV > 06-12918997

⚡Generated with XQuery