Using AJAX, it is possible to retrieve and work with different types of data. In this example, we will write jQuery
code to work with JSON and XML data.
For the XML, we'll use a local file that contains a simple XML structure.
For the JSON example we'll use the public Flickr API to retrieve images that match a set of parameters.