weblogger という Emacs package があるらしいので使ってみたところ,動かなかった。
軽く追っかけてみたところ,Roller は <methodResponse> に xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions" という attribute をつけて返すみたいなんだけど,xml-rpc.el の xml-rpc-clean<f> が attribute をうまく処理できてないようだ。
こんな感じでとりあえず post できるとこまでこぎ着けたけど,まだ問題が...
- HTMLタグが書けないぽい。書くと post 時にエラーになる。仕様っぽい? でも致命的。
- Subject: に何か書いても,本文の冒頭がエントリタイトルとして使われちゃう。
--- xml-rpc.el.orig 2008-11-16 17:24:23.303673000 +0900
+++ xml-rpc.el 2008-11-16 17:54:01.583264000 +0900
@@ -515,7 +515,7 @@
(defun xml-rpc-clean (l)
(cond
- ((listp l)
+ ((and (listp l) (listp (cdr l)))
(let ((remain l)
elem
(result nil))
@@ -573,7 +573,7 @@
(buffer-substring errstart (point-max)))))
;; Maybe they just gave us an the XML w/o PI?
- ((search-forward "<methodResponse>" nil t)
+ ((search-forward "<methodResponse" nil t)
(xml-rpc-clean (xml-parse-region (match-beginning 0)
(point-max))))



![[Go Patriots]](http://roguelife.org/diary/img/gopats.gif)

![[Masubi]](http://roguelife.org/img/masubi.png)
tomoaki@tsumura.info
Posted by Nike Dunk Sb on July 29, 2010 at 11:21 AM JST #