org.xml.sax
Stay organized with collections
Save and categorize content based on your preferences.
Interfaces
AttributeList |
This interface is deprecated.
This interface has been replaced by the SAX2
Attributes
interface, which includes Namespace support. |
Attributes |
Interface for a list of XML attributes. |
ContentHandler |
Receive notification of the logical content of a document. |
DocumentHandler |
This interface is deprecated.
This interface has been replaced by the SAX2
ContentHandler
interface, which includes Namespace support. |
DTDHandler |
Receive notification of basic DTD-related events. |
EntityResolver |
Basic interface for resolving entities. |
ErrorHandler |
Basic interface for SAX error handlers. |
Locator |
Interface for associating a SAX event with a document location. |
Parser |
This interface is deprecated.
This interface has been replaced by the SAX2
XMLReader
interface, which includes Namespace support. |
XMLFilter |
Interface for an XML filter. |
XMLReader |
Interface for reading an XML document using callbacks. |
Classes
Exceptions
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003eThis document lists the core interfaces, classes, and exceptions that comprise the SAX API for processing XML in Java.\u003c/p\u003e\n"],["\u003cp\u003eSeveral legacy interfaces and classes (like \u003ccode\u003eAttributeList\u003c/code\u003e, \u003ccode\u003eDocumentHandler\u003c/code\u003e, \u003ccode\u003eParser\u003c/code\u003e, and \u003ccode\u003eHandlerBase\u003c/code\u003e) are now deprecated in favor of their SAX2 counterparts with Namespace support.\u003c/p\u003e\n"],["\u003cp\u003eKey interfaces like \u003ccode\u003eXMLReader\u003c/code\u003e, \u003ccode\u003eContentHandler\u003c/code\u003e, and \u003ccode\u003eAttributes\u003c/code\u003e facilitate reading XML documents and handling their content and attributes.\u003c/p\u003e\n"],["\u003cp\u003eError handling is managed through the \u003ccode\u003eErrorHandler\u003c/code\u003e interface and specific exception types like \u003ccode\u003eSAXException\u003c/code\u003e and \u003ccode\u003eSAXParseException\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eInputSource\u003c/code\u003e facilitates specifying the source of an XML entity, while features like \u003ccode\u003eLocator\u003c/code\u003e and \u003ccode\u003eXMLFilter\u003c/code\u003e add to SAX's processing capabilities.\u003c/p\u003e\n"]]],["The core content defines interfaces, classes, and exceptions for SAX (Simple API for XML) processing. Key interfaces include `Attributes` for XML attributes, `ContentHandler` for document content, `DTDHandler` for DTD events, `EntityResolver` for entity resolution, `ErrorHandler` for errors, `XMLFilter` for filtering, and `XMLReader` for reading XML. `InputSource` is a class for XML entities. `SAXException`, `SAXNotRecognizedException`, `SAXNotSupportedException`, and `SAXParseException` represent various error types. Some interfaces and classes are deprecated, replaced by SAX2 versions.\n"],null,["Interfaces \n\n|---------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AttributeList](../../../../reference/org/xml/sax/AttributeList.html) | *This interface is deprecated. This interface has been replaced by the SAX2 [Attributes](../../../../reference/org/xml/sax/Attributes.html) interface, which includes Namespace support.* |\n| [Attributes](../../../../reference/org/xml/sax/Attributes.html) | Interface for a list of XML attributes. |\n| [ContentHandler](../../../../reference/org/xml/sax/ContentHandler.html) | Receive notification of the logical content of a document. |\n| [DocumentHandler](../../../../reference/org/xml/sax/DocumentHandler.html) | *This interface is deprecated. This interface has been replaced by the SAX2 [ContentHandler](../../../../reference/org/xml/sax/ContentHandler.html) interface, which includes Namespace support.* |\n| [DTDHandler](../../../../reference/org/xml/sax/DTDHandler.html) | Receive notification of basic DTD-related events. |\n| [EntityResolver](../../../../reference/org/xml/sax/EntityResolver.html) | Basic interface for resolving entities. |\n| [ErrorHandler](../../../../reference/org/xml/sax/ErrorHandler.html) | Basic interface for SAX error handlers. |\n| [Locator](../../../../reference/org/xml/sax/Locator.html) | Interface for associating a SAX event with a document location. |\n| [Parser](../../../../reference/org/xml/sax/Parser.html) | *This interface is deprecated. This interface has been replaced by the SAX2 [XMLReader](../../../../reference/org/xml/sax/XMLReader.html) interface, which includes Namespace support.* |\n| [XMLFilter](../../../../reference/org/xml/sax/XMLFilter.html) | Interface for an XML filter. |\n| [XMLReader](../../../../reference/org/xml/sax/XMLReader.html) | Interface for reading an XML document using callbacks. |\n\nClasses \n\n|-------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [HandlerBase](../../../../reference/org/xml/sax/HandlerBase.html) | *This class is deprecated. This class works with the deprecated [DocumentHandler](../../../../reference/org/xml/sax/DocumentHandler.html) interface. It has been replaced by the SAX2 [DefaultHandler](../../../../reference/org/xml/sax/helpers/DefaultHandler.html) class.* |\n| [InputSource](../../../../reference/org/xml/sax/InputSource.html) | A single input source for an XML entity. |\n\nExceptions \n\n|-----------------------------------------------------------------------------------------------|-------------------------------------------------|\n| [SAXException](../../../../reference/org/xml/sax/SAXException.html) | Encapsulate a general SAX error or warning. |\n| [SAXNotRecognizedException](../../../../reference/org/xml/sax/SAXNotRecognizedException.html) | Exception class for an unrecognized identifier. |\n| [SAXNotSupportedException](../../../../reference/org/xml/sax/SAXNotSupportedException.html) | Exception class for an unsupported operation. |\n| [SAXParseException](../../../../reference/org/xml/sax/SAXParseException.html) | Encapsulate an XML parse error or warning. |"]]