Working with XML

ActionScript 3.0 includes a group of classes based on the ECMAScript for XML (E4X) specification (ECMA-357 edition 2). These classes include powerful and easy-to-use functionality for working with XML data. Using E4X, you will be able to develop code with XML data faster than was possible with previous programming techniques. As an added benefit, the code you produce will be easier to read.

This chapter describes how to use E4X to process XML data.

Contents

A quick introduction to XML
The E4X approach to XML processing
XML objects
XMLList objects
Initializing XML variables
Assembling and transforming XML objects
Traversing XML structures
Using XML namespaces
XML type conversion
Reading external XML documents
Example: Loading RSS data from the Internet

Flex 2.01

Take a survey