PDA

View Full Version : A little help with a hack I am doing (need to pull information from xml feed.)


kobescoresagain
07-30-2006, 05:40 PM
<SearchUrls>
<Url query="05-06 Finest Shaquille O'Neal" type="Keyword">
<![CDATA[ http://www.qksrv.net/click-2039783-10370388?SID=0506FinestShaquilleONeal&loc=http%3A%2F%2Fsearch.ebay.com%2F05-06-Finest-Shaquille-ONeal_W0QQ
]]>
</Url>
<Url query="05-06 Finest Shaquille O'Neal" type="Keyword">
<![CDATA[ http://www.qksrv.net/click-2039783-10370388?SID=0506FinestShaquilleONeal&loc=http%3A%2F%2Fsearch.ebay.com%2F05-06-Finest-Shaquille-ONeal_W0QQ
]]>
</Url>
<Url query="05-06 Finest Shaquille O'Neal" type="Keyword">
<![CDATA[ http://www.qksrv.net/click-2039783-10370388?SID=0506FinestShaquilleONeal&loc=http%3A%2F%2Fsearch.ebay.com%2F05-06-Finest-Shaquille-ONeal_W0QQ
]]>
</Url>
</SearchUrls>

I have the xml feed above. I want to make links like this <a href="http://www.qksrv.net/click-2039783-10370388?SID=0506FinestShaquilleONeal&loc=http%3A%2F%2Fsearch.ebay.com%2F05-06-Finest-Shaquille-ONeal_W0QQ">05-06 Finest Shaquille O'Neal</a> One for every URL in the xml. Can someone create the code I need to do this? I assume preg_match is going to be used, but I am not so great at it.