Skip to Main Content
Head Rush Ajax
book

Head Rush Ajax

by Brett McLaughlin
March 2006
Beginner to intermediate content levelBeginner 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

Reinventing the Organization for GenAI and LLMs

Reinventing the Organization for GenAI and LLMs

Ethan Mollick
Head First Ajax

Head First Ajax

Rebecca M. Riordan

Publisher Resources

ISBN: 0596102259Errata PageSupplemental Content