XML - Processing with DOM and SAX

This lecture begins with a close look at the popular document object model (DOM) as an application programming interface (API) for XML. Clent side processing with DOM includes a quick look at AJAX with and without the XMLHttpRequest object. The simple API for XML (SAX) takes a rather different approach to XML programming and provides an interesting comparison.

Lecture Slides

XML - Processing with DOM and SAX PowerPoint

Examples from the lecture

Example 1

Server-side PHP DOM - simple temperature list

Example 2

Server-side PHP DOM - paged temperature list with validating parser

Example 3

Client-side JavaScript DOM- listing temperatures

Example 4

Client-side JavaScript DOM - searching temperatures

Example 5

Three variations on AJAX (view source to see the code)

Example 6

SAX Menu using PHP

Tutorial exercises

Remember that these exercises are an important part of the course and relvant to your coursework.

Some DOM and SAX resources



© k.mcmanus 2015
Valid XHTML 1.1! . Valid CSS . WCAG priority 3 approved