Chapter 14. Returning Data as XML

In this lesson you will learn to use XML data returned from the server via the responseXML property of the XMLHTTPRequest object.

Adding the “x” to Ajax

Lesson 12, “Returning Data as Text,” and Lesson 13, “AHAH—Asynchronous HTML and HTTP,” dealt at some length with the string value contained in responseText and looked at several techniques for using this information in applications. These examples ranged from simple updates of page element text to applications using more sophisticated data structures encoded into string values that can be stored and transferred in the responseText property.

The X in Ajax does, of course, stand for XML, and there are good reasons for using the power of XML in your applications. This ...

Get SAMS Teach Yourself Ajax in 10 Minutes now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.