keep xml attributes on nodes
reset attrs
Merge pull request #7 from nlf/master

Carry over XML node attributes