It's all spinning wheels and self-doubt until the first pot of coffee.

WordPress tool working in OPML Editor

So, I'm not sure if this is due to my not having upgraded to WordPress 2.0 or what, but it seems like there was a bug in the XML-RPC parser used by WordPress 1.5 which prevented the WordPress Tool from working within the OPML Editor.

I did a little skullduggery in the bowels of xmlrpc.php and class-IXR.php to discover that it was picking up CDATA from outside the elements defining items of data. I stuck in a quick line to clear that buffer ($this->_currentTagContents) at the start of each element parsed, which seems to have helped. But, not having fully grasped what all is going on in there, I hope I haven't broken anything else.

But, for now, it appears that this tool has worked for me finally. Because, in fact, this very entry was posted from within the OPML Editor rather than my usual ecto window.