Query database paths using REST

Monday, 24 November 2014 · 3 messages
FG
Florent Gallaire24 Nov 2014 09:12 #
Same question: http://stackoverflow.com/questions/22676574/why-cant-you-query-database-paths-files-using-rest /rest/xml/path/test.xml returns the content of the XML file, but if you try a query like: /rest/xml/path/test.xml?query=//element you have the error: [BXDB0005] Query must yield database nodes. What's wrong here ? Best regards Florent
-- FLOSS Engineer & Lawyer
DK
Dirk Kirsten24 Nov 2014 10:21 #
Hello Florent, I can't replicate this. It did work for my in a short test (using the latest Snapshot). Which version did you use? Cheers, Dirk
Quoted text · Florent Gallaire · 16 lines
On 11/24/2014 09:12 AM, Florent Gallaire wrote: > Same question: > http://stackoverflow.com/questions/22676574/why-cant-you-query-database-paths-files-using-rest > > /rest/xml/path/test.xml returns the content of the XML file, but if > you try a query like: > /rest/xml/path/test.xml?query=//element > you have the error: > [BXDB0005] Query must yield database nodes. > > What's wrong here ? > > Best regards > > Florent >
-- Dirk Kirsten, BaseX GmbH, http://basex.org |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22
FG
Florent Gallaire24 Nov 2014 14:31 #
Hello Dirk, I was using BaseX 7.8.2 But now works perfectly with Basex 7.9 ! Thanks a lot Florent
Quoted text · Dirk Kirsten · 32 lines
On Mon, Nov 24, 2014 at 10:21 AM, Dirk Kirsten <dk at basex.org> wrote: > Hello Florent, > > I can't replicate this. It did work for my in a short test (using the latest Snapshot). Which version did you use? > > Cheers, > Dirk > > On 11/24/2014 09:12 AM, Florent Gallaire wrote: >> Same question: >> http://stackoverflow.com/questions/22676574/why-cant-you-query-database-paths-files-using-rest >> >> /rest/xml/path/test.xml returns the content of the XML file, but if >> you try a query like: >> /rest/xml/path/test.xml?query=//element >> you have the error: >> [BXDB0005] Query must yield database nodes. >> >> What's wrong here ? >> >> Best regards >> >> Florent >> > > -- > Dirk Kirsten, BaseX GmbH, http://basex.org > |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz > |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: > | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle > `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22 >
-- FLOSS Engineer & Lawyer

⚡Generated with XQuery