Skip to Content
Real World XML
book

Real World XML

by Steven Holzner
January 2003
Beginner to intermediate content levelBeginner to intermediate
1200 pages
23h 42m
English
Peachpit Press
Content preview from Real World XML

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> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Inside XML

Inside XML

Steven Holzner
XML Hacks

XML Hacks

Michael Fitzgerald

Publisher Resources

ISBN: 0735712867Purchase book