XDM metadata
Wednesday, 12 February 2020 · 3 messages · last reply 13 Feb 2020
BE
Ben Engbers12 Feb 2020 10:23 #
Hi Christian,
According to the server protocol, when first sending \04 to the server, the resulting items from the query are returned as strings, prefixed by a single byte.
With my RBaseX-package, the result from
"for $i in 1 to 2 return <xml>Text { $i }</xml>"
is
"0b" "<xml>Text 1</xml>" "0b" "<xml>Text 2</xml>"
When sending \1F the strings should be prefixed by the XDM metadata.
In my case however, the output is the samen as with \04.
Is it possible to get the same output for querys in the basexgui so that I can see which output should be expected?
This is the last remaining problem in my package. If I can resolve it, I can upload a new version.
Cheers,
Ben
BE
Ben Engbers13 Feb 2020 15:31 #
Quoted text · Ben Engbers · 1 line
Op 12-02-2020 om 10:23 schreef Ben Engbers:
While reading the online-documentation, I saw that there was a internal link to
http://www.docs.basex.org/wiki/Server_Protocol:_Types#XDM_Meta_Data in which was described that in most case, the XDM meta data is nothing else than the Type ID.
So my code is giving the expected results.
Ben
CG
Christian Grün13 Feb 2020 18:04 #
Glad to hear!
Quoted text · Ben Engbers · 13 lines
On Thu, Feb 13, 2020 at 3:31 PM Ben Engbers <Ben.Engbers at be-logical.nl> wrote: > > Op 12-02-2020 om 10:23 schreef Ben Engbers: > > While reading the online-documentation, I saw that there was a internal > link to > http://www.docs.basex.org/wiki/Server_Protocol:_Types#XDM_Meta_Data in > which was described that in most case, the XDM meta data is nothing else > than the Type ID. > > So my code is giving the expected results. > > Ben
Written for BaseX 9.3. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery