tailieunhanh - XML Step by Step- P18

XML Step by Step- P18:Extensible Markup Language, or XML, is currently the most promising language for storing and exchanging information on the World Wide Web. Although Hypertext Markup Language (HTML) is presently the most common language used to create Web pages, HTML has a limited capacity for storing information. In contrast, because XML allows you to create your own elements, attributes, and document structure, you can use it to describe virtually any kind of information from a simple recipe to a complex database | Chapter 10 Displaying XML Documents Using Data Binding 313 PAGES 256 PAGES PRICE PRICE BOOK BOOK TITLE Roughing It TITLE AUTHOR Mark Twain AUTHOR BINDING mass market paperback BINDING PAGES 324 PAGES PRICE PRICE BOOK BOOK TITLE The Scarlet Letter TITLE AUTHOR Nathaniel Hawthorne AUTHOR BINDING trade paperback BINDING PAGES 253 PAGES PRICE PRICE BOOK BOOK TITLE The Turn of the Screw TITLE AUTHOR Henry James AUTHOR BINDING trade paperback BINDING PAGES 384 PAGES PRICE PRICE BOOK INVENTORY Listing 10-3. Inventory Big -- File Name Inventory Big -- HTML HEAD TITLE Book Inventory TITLE HEAD BODY XML ID dsoInventory SRC Inventory XML Data Binding 10 H2 Book Inventory H2 314 XML Step by Step BUTTON ONCLICK lt First Page BUTTON nbsp nbsp BUTTON ONCLICK lt Previous Page BUTTON nbsp nbsp BUTTON ONCLICK Next Page gt BUTTON nbsp nbsp BUTTON ONCLICK Last Page gt BUTTON P TABLE ID InventoryTable DATASRC dsoInventory DATAPAGESIZE 5 BORDER 1 CELLPADDING 5 WIDTH 100 THEAD TH Title TH TH Author TH TH Binding TH TH Pages TH TH Price TH THEAD TR ALIGN center TD SPAN DATAFLD TITLE STYLE font-style italic SPAN TD TD SPAN DATAFLD AUTHOR SPAN TD TD SPAN DATAFLD BINDING SPAN TD TD SPAN DATAFLD PAGES SPAN TD TD SPAN DATAFLD PRICE SPAN TD TR TABLE BODY HTML Listing 10-4. Chapter 10 Displaying XML Documents Using Data Binding 315 Using a Nested Table to Display a Hierarchical Record Set In the previous sections you learned how to use a single table to display an XML document structured as a simple record set. A simple record set is described at the beginning of the earlier section Using a Single HTML Table to Display a Simple Record Set. You ll now learn how to use nested tables to display an XML document whose elements are structured in a hierarchical record set. In a hierarchical record set each record can contain in addition to an optional .

TỪ KHÓA LIÊN QUAN