View Single Post

Old 11-20-2007, 01:03 PM   #1 (permalink)
matt t
Junior Member
 
Join Date: Nov 2007
Posts: 2
Rep Power: 0 matt t is on a distinguished road
XML won't work help me please !?

Ok as far as I know everything should work fine but it doesn't

Here is the xml code to the file:

<?xml version="1.0" encoding="ISO-8859-1"?>
<first>
<welcome>Welcome to</welcome>
<title>Karen and Matt's Webpage</title>
<wow>Have you ever heard a song on the radio and thought,

"Wow that describes us exactly!"</wow>

<rocky>We are on a Rocky Mountain High</rocky>
<share>we want to share with you</share>
<music>the music that is special to us</music>
</first>

I can view the XML file in a webrower with no problems and I tested the code in a syntax checker and no errors. However when I try to insert the data elements into a table in an HTML file, all I get is a blank page.

HTML code:

<html>
<title>karenandmatt</title>
<head>

</head>
<body>

<xml id ="first" src="website.xml"> </xml>

<table border ="1" datasrc="#website">
<tr>
<td ><span datafld="welcome"></span></td>
</tr>
<tr>
<td><span datafld="title"></span></td>
</tr>
<tr>
<td><span datafld="wow"></span></td>
</tr>
<tr>
<td ><span datafld ="rocky"></span></td>
<tr/>
<tr>
<td><span datafld ="share"></span</td>
</tr>
<tr>
<td><span datafld = "music"></span></td>
</tr>

</table>

</body>
</html>
__________________
matt t is offline   Reply With Quote