I am using nodejs's module "xml2js" but I need to find the root of the result.
parseString(data, function (err, result) {
console.log(result);
});
gives me
{ 'the-listener': { child1: [ 'test' ], child2: [ 'test' ] } }
And I want to just get 'the-listener'.
Instead of console.log(result) what do I need to change that to in order to get just 'the-listener'?