Click to See Complete Forum and Search --> : Help


khujo56
04-27-2008, 09:04 PM
Hello

Is there a way to include a image in an XML document? or some sort of alternative.

Thanks

Alain COUTHURES
04-28-2008, 12:43 AM
Binary data could contains '<', '>' or '&' and the encoding for characters is specified in the XML prolog so binary data must be protected (using CDATA) and converted.
For example, WordML (XML notation for Word 2003 documents) uses Base64 encoding to include images in its XML notation.

khujo56
04-28-2008, 11:40 AM
Any idea how to do it? I was reading about SVG files but not really concrete about it. Is this the best way to update a table. Using xml or is there a better way of doing it. Right now the only thing that does not show up in my table is the image, the text loads fine.

Alain COUTHURES
04-28-2008, 11:55 AM
What is it exactly what you want to do ? SVG is a notation for scalar graphics but a plugin is needed for IE...
What do you call a table ? A table in a database ? A table in an HTML page ?

khujo56
04-28-2008, 01:56 PM
yeah it is a table in HTML that loads an external xml file.
i have images that are associated with that table. The external xml file loads but i don't know how to input the images. Here is example.

www.iheartvacation.com/cheapflights.html

IF you look at the table, it was a logo and some details on the flight.
i cannot get the logo to load with the xml file. Thanks for the help.
i'm not really good at the programming side of web design.

Alain COUTHURES
04-28-2008, 02:09 PM
Sorry but I don't recognize any xml data at this location...

khujo56
04-28-2008, 02:39 PM
Sorry, listed below is the xml file and html file. Somehow i'm trying to insert a image file into the xml script and then have it load in the HTML table.Thanks again.

<?xml version="1.0" encoding="ISO8859-1" ?>
- <VACATIONS>
- <LISTINGS>
<LOCATION>Empire Burlesque</LOCATION>
<PRICE>Bob Dylan</PRICE>
<SOURCE>USA</SOURCE>
<STAR>Columbia</STAR>
</LISTINGS>
</VACATIONS>


html:

<html>
<head>
<title>CD List</title>
</head>

<body>
<xml src="vacations.xml" id="xmldso" async="false"></xml>
<table datasrc="#xmldso" border="1" width="500">
<thead align="left">
<th>LOCATION</th><th>SOURCE</th><th>PRICE</th><th>STAR</th>
</thead>

<tr>
<td><div datafld="LOCATION" align="left"></div></td>
<td><div datafld="SOURCE"></div></td>
<td><div datafld="PRICE"></div></td>
<td><div datafld="STAR"></div></td>
</tr>
</table>

</body>
</html>

Alain COUTHURES
04-29-2008, 01:30 AM
<img datafld="IMAGE"> should work if the image is not embedded but just there with an URL