Re: [basex-talk] json-to-xml and xpath

2017-08-26 Thread Liam R. E. Quin
On Sat, 2017-08-26 at 20:35 +, Hans-Juergen Rennau wrote: > Of course, Liam, but of course the BaseX format has its escaping > rules, so that it works *always*. The names become less beautiful > here and there, but in practise a couple of warped names among > hundreds of nice and meaningful

Re: [basex-talk] json-to-xml and xpath

2017-08-26 Thread Hans-Juergen Rennau
Of course, Liam, but of course the BaseX format has its escaping rules, so that it works *always*. The names become less beautiful here and there, but in practise a couple of warped names among hundreds of nice and meaningful ones are better than meaningless names throughout. A document with

Re: [basex-talk] json-to-xml and xpath

2017-08-26 Thread Liam R. E. Quin
On Sat, 2017-08-26 at 13:53 +, Hans-Juergen Rennau wrote: > I find the W3C-defined format obtained from fn:json-to-xml > unnatural and unpractical; It is, but it works in more cases. JSON keys can have values that aren't possible XML element names, e.g. { "1" : "one", "2" : "two",

Re: [basex-talk] json-to-xml and xpath

2017-08-26 Thread Hans-Juergen Rennau
Hi Günter, have you considered using json:parse instead? I find the W3C-defined format obtained from fn:json-to-xml unnatural and unpractical; whereas BaseX-defined json:parse produces a very elegant, intuitive and natural representation of the content - turning JSON documents into

Re: [basex-talk] json-to-xml and xpath

2017-08-26 Thread Günter Dunz-Wolff
It works. I’ll go with the second solution. Martin, thanks a lot! > Am 26.08.2017 um 12:26 schrieb Martin Honnen : > > On 26.08.2017 12:23, Günter Dunz-Wolff wrote: > >> I’m trying to get data out of json via xquery. >> This is my scenario: >> 1. Fetching data with

Re: [basex-talk] json-to-xml and xpath

2017-08-26 Thread Martin Honnen
On 26.08.2017 12:23, Günter Dunz-Wolff wrote: I’m trying to get data out of json via xquery. This is my scenario: 1. Fetching data with fetch:text() calling a REST-API 2. Transforming the data with json-to-xml, so I’ll get something like http://www.w3.org/2005/xpath-functions“>

[basex-talk] json-to-xml and xpath

2017-08-26 Thread Günter Dunz-Wolff
Dear all, I’m trying to get data out of json via xquery. This is my scenario: 1. Fetching data with fetch:text() calling a REST-API 2. Transforming the data with json-to-xml, so I’ll get something like http://www.w3.org/2005/xpath-functions“>