これを静的言語で書いたらどれだけ効率良く書けるんでしょうねぇ。

var functionCall = node.innerText(); //XMLから"function Method(1,2,'20')"を取得
eval(functionCall);