News:

This week IPhone 15 Pro winner is karn
You can be too a winner! Become the top poster of the week and win valuable prizes.  More details are You are not allowed to view links. Register or Login 

Main Menu

Bind the Data Island to an HTML Table

Started by ben2ong2, October 06, 2006, 04:06:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ben2ong2

To make the XML data visible on the HTML page, you must "bind" the Data Island to an HTML element.
To bind the XML data to an HTML table, add a datasrc attribute to the table element, and add datafld attributes to the span elements inside the table data:
<table datasrc="#xmldso" width="100%" border="1"><thead><th>Title</th><th>Artist</th><th>Year</th></thead><tr align="left"><td><span datafld="TITLE"></span></td><td><span datafld="ARTIST"></span></td><td><span datafld="YEAR"></span></td></tr></table>


You are not allowed to view links. Register or Login
You are not allowed to view links. Register or Login