Mac OS X Reference Library Apple Developer
Search

Introduction to Event-Driven XML Programming Guide for Cocoa

Note: This document was previously titled Event-Driven XML Parsing.

XML is a markup language that allows you to describe the structure of a document’s data entirely in text, using tags that you can arbitrarily define. (“XML” stands for “Extensible Markup Language”.) The rules governing the structure are specified in a language schema such as DTD (Document Type Definition). Cocoa provides a class, NSXMLParser, whose instances are event-driven parsers (sometimes called streaming parsers) that sequentially find the constructs of an XML document as well as any associated DTD declarations. They report what they find to a delegate, and it is up to the delegate to do something with this data. This document explains how to use NSXMLParser.

Note: Namespace support was implemented in NSXMLParser for Mac OS X v10.4. Namespace-related methods of NSXMLParser prior to this version have no effect.

Organization of This Document

This programming topic includes the following articles:

See Also

There are many websites that are rich sources of information on XML, DTD, XML tools, open-source parsers, and related specifications and technologies. A few of them are listed below, but a search of the Internet (with, for example, “XML tutorial” in the search field) will find many excellent sources of information:




Last updated: 2010-03-24

Did this document help you? Yes It's good, but... Not helpful...