使用spry輕松將xml數據顯示到html頁
隨著對dreamweavse cs3中集成spry功能的深入學習,了解并把握到spry框架的一些功能模塊,其中就有通過dreamweavse cs3可視化操作輕松將xml數據顯示到html頁中。
當然,談到如何將xml數據插入顯示到html頁中,通常立即想到的就是數據島。比如:
<xml id="blog">
<blog>
<title>test xml</title>
<atime>2007/5/1</atime>
<cont>content is ...</cont>
</blog>
</xml>
<table datasrc="#blog" width="100%">
<tr>
<td>title</td>
<td>atime</td>
<td>content</td>
</tr>
<tr>
<td><span datafld="title"></span></td>
<td><span datafld="atime"></span></td>
<td><span datafld="cont"></span></td>
</tr>
</table>
新聞熱點
疑難解答