Leonidas-from-XIV/node-xml2js — pull request #44 by mediaupstream (2012-01-02 19:12:21+00:00)
Title: Added (optional) ability to parse XML Comments

Hey,

I needed to be able to parse XML comments in my project so I forked your code and added a few lines of code which I think do the trick.

You can turn this on when instantiating the parser like so

```
var parser = xml2js.Parser({ parseComments: true });
```

Then in your JS object you get the comments in a special "$" key eg:

```
{
"example": {
"$":" This is a sample Comment! "
}
}
```

Go ahead and pull the updates or make it better, if you think it's a good idea!

Later,