xml problem

stalkio

New Member
Messages
45
Reaction score
0
Points
0
hi all, this is it:

I am setting up a spry framework in dreamweaver - at this stage just seeing if I can get an image to display from some code I've written. However the image doesn't show - can anyone tell me if this is correct? thanks

doc.xml
Code:
<?xml version="1.0"  encoding="UTF-8"?>

<!DOCTYPE root SYSTEM "file.dtd" [

    <!ELEMENT root (item)*>
    <!ELEMENT item EMPTY>

    <!ATTLIST item pic ENTITY #IMPLIED>

]>


<root>

    <item pic="mypic" />
</root>

file.dtd
Code:
<!ENTITY mypic SYSTEM "mypic.jpg" NDATA jpg>
<!NOTATION jpg SYSTEM "image/jpg">
 

stalkio

New Member
Messages
45
Reaction score
0
Points
0
Does this mean that no one knows how to display an image using XML?
 
T

themasterrocker

Guest
It depends where the image is... If it´s only on you´re computer then you need to upload it to the right directory before the image will work. I believe :p But i don´t really use dreamweaver
 

stalkio

New Member
Messages
45
Reaction score
0
Points
0
well I've tried it both ways. This is now a simpler code that I'm using trying to display an image using xml:

Code:
<?xml version="1.0" encoding="utf-8"?>

<images>
    <image src="Images/pic1.jpg" alt="No show" />
</images>

Any gurus please give kindly
 
Top