Added attributes support in XML Recorder.

The XML recorder will now add node attributes to the generated XML string.
Merge pull request #1 from PaulMougel/master

Added attributes support in XML Recorder.