[XOM-interest] Known parsers

Michael Kay mike at saxonica.com
Fri Feb 13 17:29:37 EST 2009


> 
> Which raises a question: Which Java versions have parsers 
> that ship with XInclude support? Do all Java6 releases, or 
> was it one of the uX upgrades that fixed it? What about xerces proper?
> 

I don't know whether the information is 100% reliable, but the comments in
the Saxon source code record my investigations a while ago:

                // This feature name is supported in the version of Xerces
bundled with JDK 1.5
 
parser.setFeature("http://apache.org/xml/features/xinclude-aware", true);

                // This feature name is supported in Xerces 2.9.0
                parser.setFeature("http://apache.org/xml/features/xinclude",
true);

Saxon tries both and catches the exceptions if not supported. 

The comments are silent on the question of JDK 1.6.

Michael Kay
Saxonica



More information about the XOM-interest mailing list