Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data bind Images in XML to HTML table

Status
Not open for further replies.

UTGoD

Technical User
Nov 9, 2005
2
US
Here is a cut of an xml database i have:

<PLAYER>
<NAME>Eddie George</NAME>
<NO>27</NO>
<POS>RB</POS>
<TM>Tennessee Titans</TM>
<REL>Released 2001</REL>
<IMAG>what do i put here?</IMAG>
</PLAYER>

Then i have an html page that uses a table and puts each attribute into the table.

<td><span datafld="REL"></span></td>

As you know, REL loads the REL tag from the database and puts the info in that cell of the table. However, IMAG is supposed to store an image of the item. Do i just put the filename there or do i put like

<IMAG><img src=pic.jpg></img></IMAG>

I have tried a few things but i dont know what to put in the xml database nor do i know what to put in the html to get it to load the image. Any help is appreciated.
 
How is the XML transformed to HTML?

Jon

"I don't regret this, but I both rue and lament it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top