diff --git a/lib/xmlrpc_lib.js b/lib/xmlrpc_lib.js index e97c914..7f0df5e 100644 --- a/lib/xmlrpc_lib.js +++ b/lib/xmlrpc_lib.js @@ -2492,10 +2492,11 @@ function getSingleChild(node, expectedType) function getChildText(node) { var ret = ''; + var child; for(var i = 0; i < node.childNodes.length; i++) { child = node.childNodes.item(i); - if (child.nodeType == 3) // ignore comments (8), character data (3), ... + if (child.nodeType == 3 || child.nodeType == 4) // handle text and cdata, ignore comments (8), ... { ret += String(child.nodeValue) }