danwrong / restler

REST client library for node.js
MIT License
1.99k stars 391 forks source link

Options for the xml2js parser #68

Open jorisroling opened 12 years ago

jorisroling commented 12 years ago

Hi Dan,

I'd like to hand over something other than the default options to the xml2js constructor, like this.

instead of:

var parser = new xml2js.Parser();

I'd like to have it do

var parser = new xml2js.Parser({normalize: false});

Would it be possible to somehow give restler the options object so it constructs xml2js with it?

(The normalizer otherwise destroys valueable whitespace, that's why...)

Regards, Joris

ayoung commented 12 years ago

Yes. I will have to think of a good way to pass through options. Any suggestions welcome.