Tutorial.09

Tutorial.09 - TUTORIAL 9 XP USING XML AS A DATA SOURCE New...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
New Perspectives on XML, 2 nd Edition Tutorial 9 1 XP USING XML AS A DATA SOURCE TUTORIAL 9
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
New Perspectives on XML, 2 nd Edition Tutorial 9 2 XP USING XML AS A DATA SOURCE Data binding is a process by which information in a data source is stored as an object in computer memory. In this tutorial, the data source is an XML document containing information about the employees at Freezing Point. The Web pages uses placeholders which we will later populate with data from two XML documents.
Background image of page 2
New Perspectives on XML, 2 nd Edition Tutorial 9 3 XP USING XML AS A DATA SOURCE
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
New Perspectives on XML, 2 nd Edition Tutorial 9 4 XP DATA BINDING WITH SEVERAL WEB PAGES
Background image of page 4
New Perspectives on XML, 2 nd Edition Tutorial 9 5 XP FIELDS, RECORDS, AND RECORDSETS Data in a data source is organized by fields, records, and recordsets. A field is an element that contains a single item of information such as an employees last name. A record is a collection of those fields. A recordset is a collection of records.
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
New Perspectives on XML, 2 nd Edition Tutorial 9 6 XP FIELDS, RECORDS, AND RECORDSETS This figure shows fields, records, and a recordset of an XML document
Background image of page 6
New Perspectives on XML, 2 nd Edition Tutorial 9 7 XP DATA ISLANDS The first step in data binding is to attach the Web page to a recordset. The attached data is called a data island . They can be either external files or code entered into the HTML file. The syntax to create a data island from an external file is: <xml id=“ id ” src=“ URL ”></xml> Here, id is the id name assigned to the data island URL is the filename and location of the external XML file
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
New Perspectives on XML, 2 nd Edition Tutorial 9 8 XP DATA ISLANDS For example: <xml id=“Company” src=“Company.xml”></xml> This creates a data island named Company attached to Company.xml.
Background image of page 8
nd Edition Tutorial 9 9 XP DATA ISLANDS To insert a data island directly into the HTML file, use this syntax: <xml id=“ id ”> xml code </xml>
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/26/2010 for the course CS 178 taught by Professor Mandyam during the Spring '10 term at Ohlone.

Page1 / 35

Tutorial.09 - TUTORIAL 9 XP USING XML AS A DATA SOURCE New...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online