Introduction to XML Programming Topics for Core Foundation

Core Foundation provides support for parsing XML documents into structured objects you can use in your programs. XML is a platform-independent and extensible markup language.

This document describes the Core Foundation objects that you use to parse XML documents.

Organization of This Document

Core Foundation provides an XML parser you can use to read and extract data from XML documents. Core Foundation provides two APIs with which to access the parser. A tree-based API converts XML data into the Core Foundation collection CFXMLTree, and an event-driven and callback-based API allows you to perform any action you wish on each XML structure as it is encountered by the parser. This topic provides a brief introduction to XML and goes on to describe both of the XML parser interfaces in detail.

You need to understand the following concepts to use the XML objects:

The following task demonstrates how to parse a simple XML document using each of the Core Foundation XML parser interfaces: