O'Reilly logo

Real World XML by Steven Holzner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

XML Single-Record Binding Using XML Data Islands

To see how to bind HTML elements to an XML data island, I'll write an example. In this case, I'll add a data island for ch08_03.xml with the ID of customers to a new Web page, like this:

<HTML> 
    <HEAD>
        <TITLE>
            Single Record Binding Using XML Data Islands
        </TITLE>
    </HEAD>

    <XML SRC="ch08_03.xml" ID="customers"></XML>
    .
    .
    .

Now customers can act like a DSO, just like any other DSO (which is why data islands are called data islands). I can bind this DSO to assorted HTML elements, as we've already seen in this chapter:

    <XML SRC="ch08_03.xml" ID="customers"></XML> 

    BODY>
       <CENTER>
           <H1>
               Single Record Binding Using XML Data Islands
           </H1>

            Name: <INPUT TYPE="TEXT" DATASRC="#customers"
					DATAFLD="NAME" SIZE=10> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required