PDA

View Full Version : XML Islands in HTML



evilradish
01 Jul 2010, 05:11 AM
My skill - Novice
Required help- anything to put me on the right track


I am creating a html page that I want to display the contents of xml files. It all looks ok to me but for some reason it will not display the contents in the extenal xml file

my html code Below
--------------------------------------------------------------------------

<html xmlns="http://www.w3.org/1999/xhtml">
<xml ID="book" src="book.xml"></xml>
<?xml version="1.0" ?>
<div id="wrap">
<div id="header">
<div id="innerheader">
<div id="title">
<h1>BOFinS Alerts Portal</h1>
<h2>Alerts & Monitoring</h2>
</div>
</div>
</div>

<div id="content">
<div id="page">
<div class="innerpage">
<h3>Alerts Live XML Feed</h3>
<p>This is a feed from an xml file
<table>
<tr>
<th>data1</th>
<th>data2</th>
<th>data3</th>
</tr>
<tr>
<td><span datasrc="#book" datafld="apple"></span></td>
<td><span datasrc="#book" datafld="pear"></span></td>
<td><span datasrc="#book" datafld="melon"></span> </td>
</tr>
<tr>
<td><span datasrc="#book" datafld="apple"></td>
<td><span datasrc="#book" datafld="pear"></span></td>
<td><span datasrc="#book" datafld="melon"></span> </td>
</tr>
<tr>
<td><span datasrc="#book" datafld="apple"></td>
<td><span datasrc="#book" datafld="pear"></span></td>
<td><span datasrc="#book" datafld="melon"></span> </td>
</tr>
</table>

</body>
</html>
------------------------------------------------------------------

So you can see ii have the 3 extries of xml in the table and have pointed the id of the xml source to a xml file in the same location


Thanks for any assistance
:D