public class EnterpriseXPathFactory extends XPathFactoryImpl
Constructor and Description |
---|
EnterpriseXPathFactory()
Default constructor: this creates a Configuration as well as creating the enterprise
XPathFactory.
|
EnterpriseXPathFactory(EnterpriseConfiguration config)
Constructor using a user-supplied Configuration.
|
Modifier and Type | Method and Description |
---|---|
void |
addSchema(javax.xml.transform.Source schemaSource)
Load a schema, which will be available for use by all subsequent operations using
this TransformerFactory.
|
getConfiguration, getFeature, isObjectModelSupported, newXPath, setConfiguration, setFeature, setXPathFunctionResolver, setXPathVariableResolver
public EnterpriseXPathFactory()
public EnterpriseXPathFactory(EnterpriseConfiguration config)
config
- the configuration to be used. This must be an EnterpriseConfiguration.java.lang.ClassCastException
- if the supplied configuration is not schema-aware.public void addSchema(javax.xml.transform.Source schemaSource) throws javax.xml.transform.TransformerException
schemaSource
- the JAXP Source object identifying the schema document to be loadedjavax.xml.transform.TransformerException
- if the schema cannot be read or parsed or if it is invalidCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.