XML Parsing Error: syntax error, Location: http://localhost:8984/rest/oshb?query=count(.), Line Number 1, Column 1:
Wednesday, 16 March 2022 · 3 messages · last reply 17 Mar 2022
PD
Patrick Durusau16 Mar 2022 19:40 #
Greetings!
What puzzles is the correct count is returned, despite the error message, with the cursor under the first digit.
Looking in the response, it appears that "favicon.ico" is missing and I suspect is the cause of the error.
But I wanted to confirm that assumption.
Thanks!
Patrick
--
Patrick Durusau
patrick at durusau.net
Technical Advisory Board, OASIS (TAB)
Editor, OpenDocument Format TC (OASIS), Project Editor ISO/IEC 26300 Co-Editor, ISO/IEC 13250-1, 13250-5 (Topic Maps)
Another Word For It (blog): http://tm.durusau.net
Homepage: http://www.durusau.net
Twitter: patrickDurusau
TM
Tamara Marnell17 Mar 2022 00:01 #
Hi Patrick,
I believe you're seeing a syntax error because the REST server is returning an XML document that isn't XML, but only the integer. If you wrap your results in a root node, that error should go away:
?query=<count>{count(.)}</count>
-Tamara
Quoted text · Patrick Durusau · 28 lines
On Wed, Mar 16, 2022 at 10:40 AM Patrick Durusau <patrick at durusau.net> wrote: > Greetings! > > What puzzles is the correct count is returned, despite the error > message, with the cursor under the first digit. > > Looking in the response, it appears that "favicon.ico" is missing and I > suspect is the cause of the error. > > But I wanted to confirm that assumption. > > Thanks! > > Patrick > > -- > Patrick Durusau > patrick at durusau.net > Technical Advisory Board, OASIS (TAB) > Editor, OpenDocument Format TC (OASIS), Project Editor ISO/IEC 26300 > Co-Editor, ISO/IEC 13250-1, 13250-5 (Topic Maps) > > Another Word For It (blog): http://tm.durusau.net > Homepage: http://www.durusau.net > Twitter: patrickDurusau > >
--
Tamara Marnell
Program Manager, Systems
Orbis Cascade Alliance (orbiscascade.org <https://www.orbiscascade.org/>) Pronouns: she/her/hers
PD
Patrick Durusau17 Mar 2022 02:45 #
Ah!
The perfect assist!
Thanks!
Patrick
Quoted text · Tamara Marnell · 47 lines
On 3/16/22 18:01, Tamara Marnell wrote: > Hi Patrick, > > I believe you're seeing a syntax error because the REST server is > returning an XML document that isn't XML, but only the integer. If you > wrap your results in a root node, that error should go away: > ?query=<count>{count(.)}</count> > > -Tamara > > On Wed, Mar 16, 2022 at 10:40 AM Patrick Durusau <patrick at durusau.net> > wrote: > > Greetings! > > What puzzles is the correct count is returned, despite the error > message, with the cursor under the first digit. > > Looking in the response, it appears that "favicon.ico" is missing > and I > suspect is the cause of the error. > > But I wanted to confirm that assumption. > > Thanks! > > Patrick > > -- > Patrick Durusau > patrick at durusau.net > Technical Advisory Board, OASIS (TAB) > Editor, OpenDocument Format TC (OASIS), Project Editor ISO/IEC 26300 > Co-Editor, ISO/IEC 13250-1, 13250-5 (Topic Maps) > > Another Word For It (blog): http://tm.durusau.net > Homepage: http://www.durusau.net > Twitter: patrickDurusau > > > > -- > > Tamara Marnell > Program Manager, Systems > Orbis Cascade Alliance (orbiscascade.org <https://www.orbiscascade.org/>) > Pronouns: she/her/hers
--
Patrick Durusau
patrick at durusau.net
Technical Advisory Board, OASIS (TAB)
Editor, OpenDocument Format TC (OASIS), Project Editor ISO/IEC 26300 Co-Editor, ISO/IEC 13250-1, 13250-5 (Topic Maps)
Another Word For It (blog): http://tm.durusau.net
Homepage: http://www.durusau.net
Twitter: patrickDurusau
Written for BaseX 9.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery