formatting images in XML data

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

formatting images in XML data

Post by kendall »

hello,

i am developing a shoutbox using PHP and XML. PHP is used to get the data and im using XML to store and display the data.

However i am having a problem with embeded <img> tags

i have the shoutbox so that people can use smileys much like what you guys have.

thing is i have

Code: Select all

<shout>
<name>the persons name</name>
<message>this is some text <img src="url/to/smiley.gif"/></message>
</shout>
However when i display the xml document which is formatted by a style sheet i dont get the images yet the code is there

Do i need to wrtie a "style" for the image tag?

i would have thought that it would have displayed as the output of the xml/xsl is html and it is an html tag

Kendall
Post Reply