sorting simplexml data by date
View Single Post
07-09-2010, 06:33 PM
Join Date: Nov 2007
Salathe, once again, thanks a million for introducing me to xslt. I played around with the code and got it working. I'm really starting to like XSL now.
If anyone wants to know how I got it to sort, here's what I did (hopefully it helps someone else):
<xsl:sort select="r25:start_date" order="ascending" />
Also, I had to edit the $xml->load line to $xml->load('http://username:email@example.com/blah.xml');
I tried to use $xml->load($feed); but it returned an error and I also tried $xml->loadxml($feed); but still got an error. I need to figure how I can check the url for errors prior to loading it.
"Things you can get access to, you should never memorize." -Albert Einstein
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin
View Public Profile
Send a private message to webosb
Find More Posts by webosb