Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

Dynamically specifying img src?

Question posted by: Hamster_Huey (Newbie) on August 24th, 2005 10:51 PM
Hi everyone,

How do I dynamically specify an image tag's source based on a property in my XML file?

Here's the relevant part of my xml file:

<property-set id="default">
<property name="REPORT_TITLE">My Title</property>
<property name="REPORT_LOGO">C:\myFolder\myLogo.jpg</property>
</property-set>

In the outputted HTML file, im trying to get:

<img src="file:///C:\myFolder\myLogo.jpg"</property>

Note the added "file:///" in the final HTML output!

Any ideas??

Thanks for your time,
Sev
fearreality's Avatar
fearreality
Newbie
1 Posts
July 11th, 2008
08:24 PM
#2

Re: Dynamically specifying img src?
I know this post is a few years old but i wanted to add a comment in case anyone else comes looking. If you remove "c:\" from the value in your xml, the picture should show.

Reply
Reply
Not the answer you were looking for? Post your question . . .
189,321 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top XML Forum Contributors