Thanks Dimitar,
I have one more question.
Dow we have equivalent function in basex xquery for java static method URLEncoder.encode ?
I need it before sending url request,
Thanks
Erol Akarsu
On Apr 16, 2012, at 2:25 PM, Erol Akarsu wrote:I would like to write this line into the beginning of an xml file I am generating. This is a must because I am generating csv file in xml form that should be opened Microsoft Excell.
<?xml version="1.0"?>
I tried to use "processing-instruction" like this
processing-instruction {"xml"} {'version="1.0"'}
But I am getting
Error: [XQDY0064] Processing instruction has illegal name: 'xml'.
Erol AkarsuOn Mon, Apr 9, 2012 at 8:41 PM, Charles Duffy <charles@dyfis.net> wrote:
Howdy --
The following is arguably a bug in my REST bindings rather than the server, but it worked as of the 7.2 release but fails as of the current 7.2.1 snapshot.
A request akin to the following:
POST /rest HTTP/1.1Yields the following response:
Host: 127.0.0.1:8984
Content-Length: 86
Authorization: Basic cmVhZG9ubHk6cmVhZG9ubHk=
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: identity, deflate, compress, gzip
Accept: */*
User-Agent: python-requests/0.10.6
<rest:query xmlns:rest="http://basex.org/rest"><rest:text>1+1</rest:text></rest:query>
HTTP/1.1 400 Bad Request...but did not do so previously.
Content-Length: 40
Server: Jetty(6.1.26)
Unknown option '<REST:QUERY XMLNS:REST'.
_______________________________________________
BaseX-Talk mailing list
BaseX-Talk@mailman.uni-konstanz.de
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
_______________________________________________
BaseX-Talk mailing list
BaseX-Talk@mailman.uni-konstanz.de
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk