Hi Yitzhak,

We have made a new snapshot available, based on JDK17, that may allow you to parse your XML files correctly [1].

It would still be interested to know if Gunther’s suggestion helps as well.

Thanks in advance, all the best,
Christian



On Fri, May 2, 2025 at 2:14 PM <ykhabins@bellsouth.net> wrote:
Hi Gunther,

>> "...Presumably there is some other SAX parser factory on your classpath, e.g. Xerces. Can you confirm this?..."

That's correct!!!

I am using BaseX for the following tasks:
- XSD 1.1 validations via Xerces-J 2.12.2
- XSLT 3.0 transformations via Saxon-HE 12.5

To do that, and following official BaseX way, their assemblies are copied to the following directory:
c:\Program Files (x86)\BaseX\lib\custom

Here is a list of Xerces jar files:
c:\Program Files (x86)\BaseX\lib\custom\icu4j-69_1.jar
c:\Program Files (x86)\BaseX\lib\custom\cupv10k-runtime.jar
c:\Program Files (x86)\BaseX\lib\custom\org.eclipse.wst.xml.xpath2.processor_1.2.1.jar
c:\Program Files (x86)\BaseX\lib\custom\xercesImpl.jar
c:\Program Files (x86)\BaseX\lib\custom\xml-apis.jar

Here is a list of Saxon jar files:
c:\Program Files (x86)\BaseX\lib\custom\lib\jline-2.14.6.jar
c:\Program Files (x86)\BaseX\lib\custom\lib\xmlresolver-5.2.2.jar
c:\Program Files (x86)\BaseX\lib\custom\lib\xmlresolver-5.2.2-data.jar
c:\Program Files (x86)\BaseX\lib\custom\saxon-he-12.5.jar
c:\Program Files (x86)\BaseX\lib\custom\saxon-he-test-12.5.jar
c:\Program Files (x86)\BaseX\lib\custom\saxon-he-xqj-12.5.jar

In such case, will it work the suggestion to tweak the SAXParserFactory setting?
And where exactly should I put that line?

javax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl


Regards,
Yitzhak Khabinsky