HTML 4.01 strict HTML
Visit Sourceforge.net

General TabDOM Sample ApplicationsSAX Sample Applications
General DOM SAX

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.

The Sample Code (Parsers) pages have the following structure:

General: Introduction and layout of the Parser Sample Code
DOM: Sample applications that demonstrate the usage of the DOM Parser
SAX: Sample applications that demonstrate the usage of the SAX Parser

For a more in-depth overview of XML for <SCRIPT>, you are highly encouraged to look at the source code for these example applications. These example applications demonstrate "real life" usage of the parsers and give a very good overview of the capabilities of the code.

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 TagPath Example

This example application demonstrates the capabilities of the TagPath search capabilities built into XML for <SCRIPT>'s DOM parser. The TagPath search capabilities allow JavaScript programmers to query the DOM in a manner much like CSS Selectors.


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.