View Full Version : using XML and Javascript

01-13-2003, 09:49 PM

I got a problem trying to display a picture...

i have an xml file which contains data about a shop:-

<?xml version="1.0" encoding="ISO8859-1" ?>
<name>Old Style</name>
<description> A nice coffee shop bar. </description>

i'm trying to use the picture element as a pointer to the image filename, doors.jpg, which exists in the same directory as the javascript.

But i cant find any way of using the data apart from to directly display on the screen as text. Can XML be used in this way? iif so how? any snippets apreciated.