View Full Version : XML links

04-24-2009, 01:11 PM

I'm a complete novice to xml, so please forgive a daft question!

I have the following item, which I want to put a link around, how do I do this?!


I tried this but it doesn't work:

<a href=""><img><?=$media_path?><?=$file_name?></img></a>

Alex Vincent
04-25-2009, 07:52 AM
What language is this? It looks a little like PHP, but I'm rusty with that.

If it is PHP, you probably want to make sure it's going through the PHP processor.

Also, how are you presenting this data to the user? As raw XML? Through a XSLT transformation? An AJAX call (XMLHttpRequest)? Or some other method? If it's raw XML, you'll want to use the XLink specification and namespace.

04-25-2009, 03:12 PM
I guess this belong to php forum.


Short tags (example three) are only available when they are enabled via the short_open_tag php.ini configuration file directive, or if php was configured with the --enable-short-tags option.

Note: Using short tags should be avoided when developing applications or libraries that are meant for redistribution, or deployment on PHP servers which are not under your control, because short tags may not be supported on the target server. For portable, redistributable code, be sure not to use short tags.

put your code between [ code] and [ /code] tags, please
best regards

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum