XMLDocument Property Example

This example will persist a string of text into an XML Store using the saveHistory behavior and the XMLDocument property. The script for this example uses objects, methods and properties from the XML Object Model exposed through the XMLDocument property.

The XML tree that is created when this page is left will consist of one element named TRUNK, a TEXT attribute with the text "A tree trunk," and a description equal to the text that is inserted when the Insert Text button is clicked.

This XML structure looks like this:
<TRUNK DESC="descriptive text">A tree trunk</TRUNK>

Click the Insert Text button, and then click the link "Leave the page." You will be taken to a page with a link that enables you to return here. When you return, the text will have persisted within the XML Store.

Leave the page





Right-click in window to view the full source code



© 1999 Microsoft Corporation. All rights reserved. Terms of use.