Skip to Content
Head Rush Ajax
book

Head Rush Ajax

by Brett McLaughlin
March 2006
Beginner to intermediate
448 pages
13h 33m
English
O'Reilly Media, Inc.
Content preview from Head Rush Ajax
374
Chapter 7
The heavyweight champion: XML
You’ve already seen how a server can return
XML in response to your request:
Here’s the XML that the
Boards ‘R’ Us server sent
back in Chapter 6.
XML has been around the block...
and you already know how to use
the DOM to work with XML data..
xml from the server
<?php
require(‘lib.php’);
function go() {
$myVar = ...
return ...
}
?>
<?xml version=”1.0” encoding=”utf-8”?>
<totals>
<boards-sold>1710</boards-sold>
<boots-sold>315</boots-sold>
<bindings-sold>85</bindings-sold>
</totals>
PHP script
You work
with XML
using the
DOM.
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.
Start your free trial

You might also like

What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer
How to Become a Game-Changing Leader

How to Become a Game-Changing Leader

Douglas A. Ready, Alan Mulally

Publisher Resources

ISBN: 0596102259Errata PageSupplemental Content