Next Page > Hide TOC

Introduction to XML Programming Topics for Core Foundation

Contents:

Organization of This Document


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.

Note: The Core Foundation XML API is not the preferred API to use when developing applications. Instead use the Cocoa NSXML API to get the most modern XML features. See Tree-Based XML Programming Guide for Cocoa for details.

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:



Next Page > Hide TOC


© 2008 Apple Inc. All Rights Reserved. (Last updated: 2008-10-15)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.