/ Published in: PHP
This is the beginning of my retrieval of twitter status class...just something im playing with right now. It retrieves the xml, saves it on your server, then you can either use javascript or php to traverse the xml tree.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php class xmlmanager{ private $twitterXML; private $twitterURL = ""; //insert xml url here private $dom; function __construct(){ } function GetTwitterXML(){ return ; } function save_twitter_xml_as_file(){ $this->dom = new DOMDocument(); $this->dom->loadXML($this->twitterXML->asXML()); $this->dom->saveXML(); $this->dom->save('mytwitter.xml'); return ; } function __destruct(){ } } ?>