## Deprecated API

Contents

- Deprecated Methods
- Deprecated Constructors

Deprecated Methods
net.sf.saxon.sxpath.XPathEvaluator.build(Source) since 8.9. The preferred way to build a source document is to use `Configuration.buildDocument(javax.xml.transform.Source)`
net.sf.saxon.xpath.XPathEvaluator.createExpression(String) since Saxon 8.9 - use `XPathEvaluator.compile(String)`
net.sf.saxon.xpath.XPathEvaluator.evaluate(String) since Saxon 8.9 - use the various method defined in the JAXP interface definition
net.sf.saxon.xpath.XPathEvaluator.evaluateSingle(String) since Saxon 8.9 - use the methods defined in the JAXP interface
net.sf.saxon.query.XQueryExpression.getController() since 8.5.1 - use newController()
net.sf.saxon.Controller.getPrincipalSourceDocument() From Saxon 8.7, replaced by `Controller.getInitialContextItem()` and `Controller.getContextForGlobalVariables()`
net.sf.saxon.om.Navigator.isWhite(CharSequence) since Saxon 8.5: use `Whitespace.isWhite(java.lang.CharSequence)`
net.sf.saxon.sxpath.XPathExpression.rawIterator(Source) since 8.9 - use `XPathExpression.iterate(net.sf.saxon.sxpath.XPathDynamicContext)`
net.sf.saxon.query.QueryResult.serialize(NodeInfo, Result, Properties, Configuration) since 8.9; use `QueryResult.serialize(NodeInfo, Result, Properties)` instead.
net.sf.saxon.query.StaticQueryContext.setConfiguration(Configuration) This method serves no purpose, since it is not possible to change the configuration once the StaticQueryContext has been initialized.
net.sf.saxon.query.DynamicQueryContext.setContextNode(NodeInfo) From Saxon 8.7, the method `DynamicQueryContext.setContextItem(Item)` is preferred
net.sf.saxon.xpath.XPathEvaluator.setContextNode(NodeInfo) since Saxon 8.9 - use the various method defined in the JAXP interface definition, which allow a NodeInfo object to be supplied as the value of the Source argument
net.sf.saxon.Controller.setPrincipalSourceDocument(DocumentInfo) From Saxon 8.7, replaced by `Controller.setInitialContextItem(Item)`
net.sf.saxon.sxpath.XPathEvaluator.setStripSpace(boolean) since 8.9. The preferred way to build a source document is to use `Configuration.buildDocument(javax.xml.transform.Source)`
net.sf.saxon.xpath.XPathEvaluator.setStripSpace(boolean) since 8.9. The preferred way to define options for the way in which source documents are built is to use the class `AugmentedSource` for any of the methods expecting a `Source` object.

Deprecated Constructors
net.sf.saxon.StandardURIResolver() since 8.7

Copyright (C) Michael H. Kay. All rights reserved.