Skip to content

Commit

Permalink
Carry over to newer libxml
Browse files Browse the repository at this point in the history
  • Loading branch information
lkundrak authored and claudioc committed Sep 19, 2010
1 parent 7ab30e0 commit 08bafff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmlrpc-c.js
Expand Up @@ -129,7 +129,7 @@ Client.prototype.call = function(method, params, callback) {

var doc, response, fault;
try {
doc = libxml.parseString(payload);
doc = libxml.parseXmlString(payload);
response = doc.root();
} catch(e) {
return me.emit('error', method, "Response seems not a regular XMLRPC one");
Expand Down Expand Up @@ -264,7 +264,7 @@ var H = {
},

getFirstChild: function(element) {
var children = element.children();
var children = element.childNodes();
for (var i=0; i < children.length; i++) {
// FIXME is this the right way to test for a TEXT node type?
if (children[i].name() !='text') {
Expand Down

0 comments on commit 08bafff

Please sign in to comment.