Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Known parsers

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Michael Kay" <mike AT saxonica.com>
  • To: "'Steve Loughran'" <steve.loughran AT gmail.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Known parsers
  • Date: Fri, 13 Feb 2009 22:29:37 -0000


>
> 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





Archive powered by MHonArc 2.6.24.

Top of Page