com.saxonica
Class SchemaAwareXPathFactory
java.lang.Object
javax.xml.xpath.XPathFactory
net.sf.saxon.xpath.XPathFactoryImpl
com.saxonica.SchemaAwareXPathFactory
public class SchemaAwareXPathFactory
- extends XPathFactoryImpl
An implementation of the JAXP XPath Factory that creates a schema-aware configuration. This implementation
is used when Saxon-SA is present, and when the object model selected is the Saxon native object model.
SchemaAwareXPathFactory
public SchemaAwareXPathFactory()
- Default constructor: this creates a Configuration as well as creating the schema-aware
XPathFactory. Any documents accessed using this XPathFactory must be built using this same Configuration.
SchemaAwareXPathFactory
public SchemaAwareXPathFactory(Configuration config)
- Constructor using a user-supplied Configuration.
This constructor is useful if the document to be queried already exists, as it allows the configuration
associated with the document to be used with this XPathFactory.
- Parameters:
config
- the configuration to be used. This must be a SchemaAwareConfiguration.
- Throws:
ClassCastException
- if the supplied configuration is not schema-aware.
Copyright (C) Michael H. Kay. All rights reserved.