Skip to Content
The ActionScript 3.0 Quick Reference Guide
book

The ActionScript 3.0 Quick Reference Guide

by Jen deHaan, David Stiller, Darren Richardson, Rich Shupe
October 2008
Beginner to intermediate
491 pages
12h 20m
English
O'Reilly Media, Inc.
Content preview from The ActionScript 3.0 Quick Reference Guide

Chapter 16. How Do I Work with XML?

16.0 Introduction

XML (Extensible Markup Language) is a flexible way to structure data for storage, transmission, and parsing. Traditional name-value pairs, used by standard GET and POST form actions, are fine for transferring small amounts of simple data. However, this technique isn’t well suited for large amounts of data or when you have to carefully organize the data.

For example, name-value pairs are limited to associations that link a single value with a single variable. Complex associations where variables must be grouped in some manner are arguably impossible, or would require multiple variables with similar names.. You could get a basic database-like structure this way with name-value pairs:

?user1namefirst=John&user1namelast=Public&
user1joined=2007&user1reg=yes&

Using XML, however, you can easily associate related variables. The preceding name-value pair submission could be represented this way in XML:

<user>
    <first>John</first>
    <last>Public</last>
    <joined reg="yes">2007</joined>
</user>

You can imagine, when this data enlarges to many users, how much more easily you can work with a single variable that contains data that’s organized consistently.

Although this book discusses ActionScript 3.0’s ability to manipulate XML, it can’t delve into the basics of XML. However, you’ll find a bountiful supply of information online. One such resource is the World Wide Web Consortium home for XML coverage, http://www.w3c.org/XML/.

For the purposes of this ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

ActionScript 3.0: Visual QuickStart Guide

ActionScript 3.0: Visual QuickStart Guide

Derrick Ypenburg
ActionScript 3.0 Bible

ActionScript 3.0 Bible

Roger Braunstein

Publisher Resources

ISBN: 9780596155247Errata Page