Using XML Data Islands to Update the Contents of a Node

So far, all of the data operations that you've performed on a node have involved extracting the name of the node and the data in the text component. However, the text value of a node is not a read-only property. In the next exercise, you'll use the standard HTML form button element to trigger the updating of the nodes.

Listing 4.6 links the display of the data from an XML file to the clicking of an HTML button. The purpose is to show that your display of data isn't necessarily a passive one, but one that you can control to some extent by interacting with the GUI interface.

Listing 4.6 Using an HTML Button to Update the Nodes' Contents
 1:<html> 2:<!-- This is an example of the dynamic updating ...

Get Sams Teach Yourself XML in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.