Images source from XML to XHTML

wxdqz

New Member
I created an XML file that has picture file name in it, how can I display the image in the html.
HELP!!!

here are my files:
------------ xml -------
<?xml version="1.0" encoding="utf-8"?>
<player>
<name>maria Doe</name>
<picture>maria.jpg</picture>
<residence>Tustin, CA</residence>
</player>

------------html -------
<html>
<body>
<xml id="cdcat" src=http://www.webdeveloper.com/forum/archive/index.php/"maria.xml"></xml>

<table border="1" datasrc="#cdcat">
<tr>
<td><span datafld="name"></span></td> <!--- this works--->
<td><span datafld="residence"></span></td> <!--- this works--->
<td><img border="0" src="'picture'" width="160" height="120"></span></td> <!--- this DOES NOT works. Don't know the sytax -->
</tr>
</table>

</body>
</html>
 
Back
Top