Saxonica.com

XML 1.1 support

There is a new option setXMLVersion() in the Configuration, which defaults to 1.0.

This configuration setting affects:

The Saxon configuration setting has no effect on the XML parser. If XML 1.1 documents are supplied as input to Saxon, then you MUST call config.setXMLVersion(Configuration.XML11) (or use -1.1 on the command line). Saxon won't necessarily detect the error if you fail to do so (especially if the documents don't use any XML 1.1 features).

Note that there are a few incompatibilities introduced by this change, for example XQuery will only accept XML 1.1 line endings if the -1.1 flag is set.

Next