An event driven parser of XML documents (including DTD declarations).
- iOS 2.0+
- macOS 10.3+
- tvOS 9.0+
- watchOS 2.0+
XMLParser notifies its delegate about the items (elements, attributes, CDATA blocks, comments, and so on) that it encounters as it processes an XML document. It does not itself do anything with those parsed items except report them. It also reports parsing errors. For convenience, an
XMLParser object in the following descriptions is sometimes referred to as a parser object. Unless used in a callback, the
XMLParser is a thread-safe class as long as any given instance is only used in one thread.