danwrong/restler — Issue #68: Options for the xml2js parser
Author: jjupiter
Created: 2012-01-30 14:13:44+00:00
State: open

Hi Dan,

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

instead of:

```javascript
var parser = new xml2js.Parser();
```

I'd like to have it do

```javascript
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