# Deprecated API

## Contents

- Deprecated Interfaces
- Deprecated Classes
- Deprecated Fields
- Deprecated Methods
- Deprecated Constructors

- Deprecated Interfaces
  Interface and Description
  org.apache.xml.dtm.ref.CoroutineParser Since the ability to start a parse via the coroutine protocol was not being used and was complicating design. See `IncrementalSAXSource`.
  org.apache.xml.utils.DOMOrder Since the introduction of the DTM, this class will be removed. Nodes that implement this index can return a document order index. Eventually, this will be replaced by DOM 3 methods. (compareDocumentOrder and/or compareTreePosition.)
  org.apache.xalan.serialize.DOMSerializer Use org.apache.xml.serializer.DOMSerializer
  org.apache.xalan.serialize.Serializer Use org.apache.xml.serializer.Serializer
  org.apache.xalan.transformer.TransformSnapshot It doesn't look like this code, which is for tooling, has functioned propery for a while, so it doesn't look like it is being used.

- Deprecated Classes
  Class and Description
  org.apache.xml.utils.DOM2Helper Since the introduction of the DTM, this class will be removed. This class provides a DOM level 2 "helper", which provides services currently not provided be the DOM standard.
  org.apache.xml.utils.DOMHelper Since the introduction of the DTM, this class will be removed. This class provides a front-end to DOM implementations, providing a number of utility functions that either aren't yet standardized by the DOM spec or that are defined in optional DOM modules and hence may not be present in all DOMs.
  org.apache.xalan.xsltc.dom.ForwardPositionIterator This class exists only for backwards compatibility with old translets. New code should not reference it.
  org.apache.xpath.operations.Quo
  org.apache.xalan.serialize.SerializerFactory The new class to use is org.apache.xml.serializer.SerializerFactory
  org.apache.xml.serializer.ToHTMLSAXHandler As of Xalan 2.7.1, replaced by the use of `ToXMLSAXHandler`.
  org.apache.xml.serializer.ToTextSAXHandler As of Xalan 2.7.1, replaced by the use of `ToXMLSAXHandler`.
  org.apache.xalan.processor.XSLProcessorVersion To be replaced by org.apache.xalan.Version.getVersion()

- Deprecated Fields
  Field and Description
  org.apache.xalan.res.XSLTErrorResources_zh_TW.QUERY_HEADER
  org.apache.xalan.res.XSLTErrorResources_zh.QUERY_HEADER
  org.apache.xalan.res.XSLTErrorResources_tr.QUERY_HEADER
  org.apache.xalan.res.XSLTErrorResources_sv.QUERY_HEADER
  org.apache.xalan.res.XSLTErrorResources_sl.QUERY_HEADER
  org.apache.xalan.res.XSLTErrorResources_sk.QUERY_HEADER
  org.apache.xalan.res.XSLTErrorResources_ru.QUERY_HEADER
  org.apache.xalan.res.XSLTErrorResources_pt_BR.QUERY_HEADER
  org.apache.xalan.res.XSLTErrorResources_pl.QUERY_HEADER
  org.apache.xalan.res.XSLTErrorResources_ko.QUERY_HEADER
  org.apache.xalan.res.XSLTErrorResources_ja.QUERY_HEADER
  org.apache.xalan.res.XSLTErrorResources_it.QUERY_HEADER
  org.apache.xalan.res.XSLTErrorResources_hu.QUERY_HEADER
  org.apache.xalan.res.XSLTErrorResources_fr.QUERY_HEADER
  org.apache.xalan.res.XSLTErrorResources_es.QUERY_HEADER
  org.apache.xalan.res.XSLTErrorResources_de.QUERY_HEADER
  org.apache.xalan.res.XSLTErrorResources_cs.QUERY_HEADER
  org.apache.xalan.res.XSLTErrorResources_ca.QUERY_HEADER
  org.apache.xalan.res.XSLTErrorResources.QUERY_HEADER

- Deprecated Methods
  Method and Description
  org.apache.xalan.serialize.Serializer.asContentHandler() Use org.apache.xml.serializer.Serializer
  org.apache.xalan.serialize.Serializer.asDOMSerializer() Use org.apache.xml.serializer.Serializer
  org.apache.xalan.xsltc.dom.KeyIndex.cloneIterator()
  org.apache.xalan.lib.sql.XConnection.disableDefaultConnectionPool() Use setFeature("default-pool-enabled", "false");
  org.apache.xalan.lib.sql.XConnection.disableStreamingMode() Use setFeature("streaming", "false");
  org.apache.xalan.lib.sql.XConnection.enableDefaultConnectionPool() Use setFeature("default-pool-enabled", "true");
  org.apache.xalan.lib.sql.XConnection.enableStreamingMode() Use setFeature("streaming", "true");
  org.apache.xalan.transformer.TransformerImpl.executeFromSnapshot(TransformSnapshot) This is an internal tooling API that nobody seems to be using
  org.apache.xalan.templates.OutputProperties.getDefaultMethodProperties(String) Use org.apache.xml.serializer.OuputPropertiesFactory. getDefaultMethodProperties directly.
  org.apache.xalan.xsltc.dom.KeyIndex.getLast()
  org.apache.xalan.serialize.Serializer.getOutputFormat() Use org.apache.xml.serializer.Serializer
  org.apache.xalan.serialize.Serializer.getOutputStream() Use org.apache.xml.serializer.Serializer
  org.apache.xalan.xsltc.dom.KeyIndex.getPosition()
  org.apache.xml.utils.DOMHelper.getRoot(Node)
  org.apache.xalan.serialize.SerializerFactory.getSerializer(Properties) Use org.apache.xml.serializer.SerializerFactory
  org.apache.xalan.transformer.TransformerImpl.getSnapshot() This is an internal tooling API that nobody seems to be using
  org.apache.xalan.xsltc.dom.KeyIndex.getStartNode()
  org.apache.xalan.serialize.Serializer.getWriter() Use org.apache.xml.serializer.Serializer
  org.apache.xalan.xsltc.dom.KeyIndex.gotoMark()
  org.apache.xml.utils.DOMHelper.isIgnorableWhitespace(Text)
  org.apache.xalan.xsltc.dom.KeyIndex.isReverse()
  org.apache.xml.utils.XMLCharacterRecognizer.isWhiteSpace(String) Will be replaced by `XMLCharacterRecognizer.isWhiteSpace(CharSequence)` in the next major release.
  org.apache.xml.utils.XMLCharacterRecognizer.isWhiteSpace(StringBuffer) Will be replaced by `XMLCharacterRecognizer.isWhiteSpace(CharSequence)` in the next major release.
  org.apache.xalan.xsltc.dom.KeyIndex.lookupId(Object)
  org.apache.xalan.xsltc.dom.KeyIndex.lookupKey(Object)
  org.apache.xalan.xsltc.dom.KeyIndex.merge(KeyIndex)
  org.apache.xalan.xsltc.dom.KeyIndex.next()
  org.apache.xalan.xsltc.runtime.BasisLibrary.positionF(DTMAxisIterator) This method exists only for backwards compatibility with old translets. New code should not reference it.
  org.apache.xalan.serialize.Serializer.reset() Use org.apache.xml.serializer.Serializer
  org.apache.xalan.xsltc.dom.KeyIndex.reset()
  org.apache.xalan.transformer.TransformerImpl.resetToStylesheet(TransformSnapshot) This is an internal tooling API that nobody seems to be using
  org.apache.xalan.xsltc.dom.KeyIndex.setMark()
  org.apache.xalan.serialize.Serializer.setOutputFormat(Properties) Use org.apache.xml.serializer.Serializer
  org.apache.xalan.serialize.Serializer.setOutputStream(OutputStream) Use org.apache.xml.serializer.Serializer
  org.apache.xalan.xsltc.dom.KeyIndex.setStartNode(int)
  org.apache.xalan.serialize.Serializer.setWriter(Writer) Use org.apache.xml.serializer.Serializer

- Deprecated Constructors
  Constructor and Description
  org.apache.xalan.xsltc.dom.NodeSortRecordFactory(DOM, String, Translet, String[], String[]) This constructor is no longer used in generated code. It exists only for backwards compatibility.

Copyright © 2023 Apache XML Project. All Rights Reserved.