Comments after XML declaration cause XQQueryException
Hi,
I'm noticing an issue where an XQQueryException is thrown if there are comments after XML declaration. I noticed it since license headers often go in this location (e.g. Apache License 2.0)
Here is an example program that demonstrates the issue
https://gist.github.com/dustinschultz/5718281
I believe the bug resides within the xqj-basex code but I have no idea where post bug reports and the source doesn't seem to be available. (Is it possible to get the source?)
Thanks, Dustin
Hi Dustin,
our XQJ API has been implemented by Charles Foster [1, 2]. He might give you more details on what‘s going on here.
Christian
[1] http://xqj.net/basex [2] http://docs.basex.org/wiki/Java_Examples
Quoted text · Dustin Schultz · 20 lines
> I'm noticing an issue where an XQQueryException is thrown if there are > comments after XML declaration. I noticed it since license headers often go > in this location (e.g. Apache License 2.0) > > Here is an example program that demonstrates the issue > > https://gist.github.com/dustinschultz/5718281 > > I believe the bug resides within the xqj-basex code but I have no idea where > post bug reports and the source doesn't seem to be available. (Is it > possible to get the source?) > > Thanks, > Dustin > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
Hi,
Thanks Christian. I contacted Charles Foster and submitted a bug to XQJ.net: http://xqj.net/issues/view.php?id=28
In case others run into this issue, the workaround for now is to wrap the InputStream in an XMLStreamReader and send that to bindDocument()
Thanks, Dustin
Quoted text · Christian Grün · 34 lines
On 6/6/13 3:59 AM, "Christian Grün" <christian.gruen at gmail.com> wrote: >Hi Dustin, > >our XQJ API has been implemented by Charles Foster [1, 2]. He might >give you more details on whatŒs going on here. > >Christian > >[1] http://xqj.net/basex >[2] http://docs.basex.org/wiki/Java_Examples >___________________________ > >> I'm noticing an issue where an XQQueryException is thrown if there are >> comments after XML declaration. I noticed it since license headers >>often go >> in this location (e.g. Apache License 2.0) >> >> Here is an example program that demonstrates the issue >> >> https://gist.github.com/dustinschultz/5718281 >> >> I believe the bug resides within the xqj-basex code but I have no idea >>where >> post bug reports and the source doesn't seem to be available. (Is it >> possible to get the source?) >> >> Thanks, >> Dustin >> >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>
Written for BaseX 7.6. BaseX may have changed since: please check the current documentation.