Hey vanian,
I seem to have stopped getting notices when some posts here...guess I need to check into that.
I wanted to point something out that I ran into when I was using this module on a site the other day. I was getting an error about XPATH query not being valid so I changed this:
$elements["$name"] = $xpath->query("value/string", $e)->item(0)->nodeValue;
Which is located in most every function on the class to:
$elements["$name"] = $xpath->query("value", $e)->item(0)->nodeValue;
Since some XML that comes from Wordpress does not a <string> tag it was throwing an error.
You can also put a try{} around that line if you have a problem and want to process the xml correctly.
At any rate, if you just grab the value and not value/string, You should get everything in the elements string array that wordpress sends back.
So you could do something like:
$posts = $blog->getList(10);
foreach($posts as $k=>$v){
echo $k;
}
That will give you a list of all the available xml tags sent back from wordpress. This would be handy if you were looking for using the date, and didn’t know what the array name was it was.