Forum Moderators: skibum
Sorry I'm a newbie here, and you guys are always so helpful, so I thought I would run this by you guys. I signed up for FindWhat.Com's affiliate program, and they sent me the URL for their XML interface. However, I'm not sure exactly how to incorporate this into my website. It is as follows. It says
"This URL will return raw XML data that will need to be parsed on your end and displayed in the format of your choice. "
How do I go about doing that? I didnt want to post the link. Cause I know that kinda stuff isnt appreciated. If you guys could help me out, I would be so greatful. Thanks in advance!
Joe
PHP Version 4.3.2
Mysql Version 3.23.56
Apache Version 1.3.28 (Unix)
Operating System Linux
Perl Version 5.006001
I dont know if that is what you mean, like I said. I'm new. Is this something a newbie can do? I can grasp programmin stuffin pretty easily, this is just foreign territory. Thanks a bunch man!
Joel
<somerootelement>
<children>blah</children>
<children>blah</children>
<children>blah</children>
<children>blah</children>
</somerootelement>
If it is simple enough (e.g., like the example above), then you can just use Perl / PHP / or even client side JS to parse it. Just map out <somerootelement> -> <div> , <children> -> <span> or similar then write your converted element to the HTML document.
If the XML tree is more complex it might be worth the effort to learn XSLTs and map out the elements with XPath, especially if you are good at learning programming type stuff pretty easily.
There are lots of good tutorials on XSL / XPath online (check out xml.com "essentials" for starters). I just started learning XSL recently, kind of...more like a spare-time thing...and I've found at least 5 or 6 good tuts so far just by a search for "XSL tutorial." :)
Jordan