Comments after XML declaration cause XQQueryException

Thursday, 6 June 2013 · 3 messages
DS
Dustin Schultz6 Jun 2013 01:56 #
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
CG
Christian Grün6 Jun 2013 11:59 #
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 >
DS
Dustin Schultz6 Jun 2013 17:41 #
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 >>

⚡Generated with XQuery