I spend a vast amount of my time programming. I do it for most of my day at work and I do a lot at home too (‘cause I’m a bit of a nerd, really).
At work, we use Microsoft’s very powerful .NET tools to code Windows and Web applications. One thing they do rather well is XML handling. You can do rather a lot with it.
PHP4, one of the languages which I have access to on this site, doesn’t seem to do XML anything like as well. This is a bit-of-a-pain-really™. In fact, it’s very frustrating because I’d very much like to have a generic XML parser at my disposal so I can parse in some OPML feeds of my blogroll rather than the (seemingly unreliable) RSS I get at the moment. And to do it myself would be nice, y’know?
So, this is a bit of a plea: Can anyone point me towards “how to use XML in an intuitive manner in PHP4”?
I’ve a couple of ideas that I don’t know the possibilities of:
- We also have Perl installed on this server deal of ours. I have been known to do a bit of Perl in my time, has anyone got some experience of using Perl from within a PHP script to generate something XHTML, from the other XML format. I could run the Perl process via Cron and generate XHTML for the PHP to pick up later… maybe that would work well.
- Maybe the most elegant way… can PHP do any kind of server side XSL Transformation of an RSS, OPML or whatever feed into XHTML? I could then output the coverted XHTML. Again, I’ve never done any XSLT so I have no idea what’s involved here.
Thanks.