Click to See Complete Forum and Search --> : Calling links from XML


thesprucegoose
05-26-2009, 04:02 PM
Hello,

I'm attempting to pull a URL from an XML document and turning it into a hyperlink.

I have no idea where to start, I have a page that allows you puts in an email and outputs XML, but it has a .php extension.

http://www.wildearthride.com/html/admin/jd-mpd-login.html

I noticed that there are <URL> tags in the XML, so I'm assuming it's as simple as calling them? How would I go about this?

I will research, I just thought I'd post this in case someone wanted to be nice and help me :)

Thanks,

--thesprucegoose

jkmyoung
05-28-2009, 02:06 PM
What are you using? Are you using PHP to post a webrequest to get this xml, and then pulling it? If so, do you have simple-xml or other xml parsers installed on your php server?

thesprucegoose
05-28-2009, 05:00 PM
Thanks for the response.

During my research, I found a way to create links for images (which is what I was after) using XSLT.


<img width="5%" height="5%">
<xsl:attribute name="src">
<xsl:value-of select="../location/logo"/>
</xsl:attribute>
</img>


Next time I won't forget to mark my threads resolved :-p

--thesprucegoose