# Deprecated API

## Contents

- Deprecated Interfaces
- Deprecated Classes
- Deprecated Methods

- Deprecated Interfaces
  Interface | Description
  --- | ---
  org.xml.sax.AttributeList | This interface has been replaced by the SAX2 `Attributes` interface, which includes Namespace support.
  org.xml.sax.DocumentHandler | This interface has been replaced by the SAX2 `ContentHandler` interface, which includes Namespace support.
  org.xml.sax.Parser | This interface has been replaced by the SAX2 `XMLReader` interface, which includes Namespace support.

- Deprecated Classes
  Class | Description
  --- | ---
  org.xml.sax.helpers.AttributeListImpl | This class implements a deprecated interface, `AttributeList`; that interface has been replaced by `Attributes`, which is implemented in the `AttributesImpl` helper class.
  org.xml.sax.HandlerBase | This class works with the deprecated `DocumentHandler` interface. It has been replaced by the SAX2 `DefaultHandler` class.
  org.xml.sax.helpers.ParserFactory | This class works with the deprecated `Parser` interface.
  org.xml.sax.helpers.XMLReaderFactory | It is recommended to use `SAXParserFactory` instead.

- Deprecated Methods
  Method | Description
  --- | ---
  javax.xml.stream.XMLEventFactory.newInstance(String, ClassLoader) | This method has been deprecated to maintain API consistency. All newInstance methods have been replaced with corresponding newFactory methods. The replacement `XMLEventFactory.newFactory(java.lang.String, java.lang.ClassLoader)` method defines no changes in behavior.
  javax.xml.stream.XMLInputFactory.newInstance(String, ClassLoader) | This method has been deprecated to maintain API consistency. All newInstance methods have been replaced with corresponding newFactory methods. The replacement `XMLInputFactory.newFactory(java.lang.String, java.lang.ClassLoader)` method defines no changes in behavior.
  javax.xml.stream.XMLOutputFactory.newInstance(String, ClassLoader) | This method has been deprecated because it returns an instance of XMLInputFactory, which is of the wrong class. Use the new method `XMLOutputFactory.newFactory(java.lang.String, java.lang.ClassLoader)` instead.