Home
Documentation
Case Studies
Sample Code
Test Suites
History
Tools
Download
Sample Code

XML for <SCRIPT> contains a number of comprehensive sample applications used to demonstrate the functionality of the project. Both DOM and SAX sample applications are included.

DOM Sample Application for Modern Browsers

This application demonstrates the DOM parser of XML for <SCRIPT> being used as a client-side disconnected database. All of the initialization data is sent to the browser on the initial page load. After that, the XML is modified entirely on the client side without the need to return to the server to save or recall further data.

DOM Sample Application for 4.x Browsers

XML for <SCRIPT> also works with older browsers. This application demonstrates that it is possible to use the project even in some older browsers if needed.

SAX Sample Application 1

This sample application demonstrates how to use the SAX parser to build your own object capable of returning information about the XML data passed in.

NOTE: While Opera fully supports XML for <SCRIPT>'s SAX parser, this sample application does not work in that browser due to a lack of innerHTML support. If you are using Konqueror, this sample application requires version 3.0 or higher.

SAX Tree View Sample

This sample application builds on the sample above to demonstrate how an DHTML tree view can be constructed from XML using the SAX Parser.

NOTE: While Opera fully supports XML for <SCRIPT>'s SAX parser, this sample application does not work in that browser due to a lack of innerHTML support. If you are using Konqueror, this sample application requires version 3.0 or higher.