Link to image in CDATA

Link to image in CDATA

Link to image in CDATA

I have this code:the data comes from this array: $files[] = array( "filename"=>$file, "intLatitude"=>$intLatitude, "intLongitude"=>$intLongitude); "directory"=>$$dh;-------------------and the XML-file:

RE: Link to image in CDATA

[0] Let me set-aside any doubt in regard to the construction of $xml. I take it as correct to your satisfaction (including typos that may not exist in the script, $file at multiple places, or what to result of a pass-through of the function parseToXML().)

[1] >I want to change the CDATA-code so I can open the image in an popup-window. As to this functionality, it belongs to html arena. It won't happen in the xml document as reflect in $xml.

[1.1] Having said that, you can extract the cdatasection as child of every possible <html> element. Put them all inside a html wrapper element, and then save it to a html file. In that case you can do the hyperlinking. (But then again just a remark: the href attribute is set to #. Hence, I don't see, a priori, the effect of clicking on the image bringing you to some other url. In any case, it doesn't matter and I leave it to you for further setup.)

[1.2] This is how it can be done as a quick sketch.//etc etc in your script before the endfclose($file);