Just an update on this, if anyone is interested... I forked BaseX,
basically removed the current implementation... I tried multiple things
like changing the streamsource, manually creating a saxparser, setting
various features, setting content handlers, disabling everything BaseX
does until it returns the errors to the screen (for example recursive
exception cause logging), and I still got a delay... so for now I can
only guess that this delay is because of the complex schema the XML
files are using, since this is the only thing the other application does
differently. (and maybe it's faster because is not that accurate). So I
kinda give up on this :)
The only real discovery I made is that this file:
https://github.com/BaseXdb/basex/blob/master/basex-core/etc/basexgui.bat
doesn't include the libraries on Windows 10... I had to change the line
for /R "%LIB%" %%a in (*.jar) do set CP=!CP!;%%a
to
set CP=!CP!;%LIB%/*
As a side note, I would like to experiment more with BaseX code... I
wonder if anyone has managed to use latest Eclipse / Windowbuilder with
it.. It usually crashes when I tried to use it in the past.
On 7/19/2016 4:40 PM, Andy Bunce wrote:
Looks like it wants to use it [1]. You could try running below in the GUI:
Q{java:org.basex.util.Reflect}find("org.apache.xerces.jaxp.validation.XMLSchemaFactory")
/Andy
[1]
https://github.com/BaseXdb/basex/blob/b8c1ae7738664aa3912ade783b8a01a0a2285d25/basex-core/src/main/java/org/basex/query/func/validate/ValidateXsd.java#L65