[XOM-interest] Known parsers

Steve Loughran steve.loughran at gmail.com
Sat Feb 14 15:52:26 EST 2009


On Fri, Feb 13, 2009 at 10:29 PM, Michael Kay <mike at saxonica.com> wrote:
>
>>
>> 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.
>

thanks. I guess I could write the code to pull down every xerces
variant from the repository and test it, but that still leaves the JDK
problem. All I know is that JRockit on my desktop says no, though it
could be from a xerces variant sneaking into the CP

https://issues.apache.org/jira/browse/HADOOP-5254


More information about the XOM-interest mailing list