13.08.2012 Views

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 6: Working with XML<br />

Flash Player 9 and later, Adobe AIR 1.0 and later<br />

ActionScript 3.0 includes a group of classes based on the ECMAScript for XML (E4X) specification (ECMA-357<br />

edition 2). These classes include powerful and easy-to-use functionality for working with XML data. Using E4X, you<br />

will be able to develop code with XML data faster than was possible with previous programming techniques. As an<br />

added b<strong>en</strong>efit, the code you produce will be easier to read.<br />

More Help topics<br />

XML class<br />

ECMA-357 specification<br />

Basics of XML<br />

Flash Player 9 and later, Adobe AIR 1.0 and later<br />

XML is a standard way of repres<strong>en</strong>ting structured information so that it is easy for computers to work with and<br />

reasonably easy for people to write and understand. XML is an abbreviation for eXt<strong>en</strong>sible Markup Language. The<br />

XML standard is available at www.w3.org/XML/.<br />

XML offers a standard and conv<strong>en</strong>i<strong>en</strong>t way to categorize data, to make it easier to read, access, and manipulate. XML<br />

uses a tree structure and tag structure that is similar to HTML. Here is a simple example of XML data:<br />

<br />

What you know?<br />

Steve and the flubberblubs<br />

1989<br />

2006-10-17-08:31<br />

<br />

XML data can also be more complex, with tags nested in other tags as well as attributes and other structural<br />

compon<strong>en</strong>ts. Here is a more complex example of XML data:<br />

Last updated 6/6/2012<br />

95

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!