Put spaces between multiple attributes in element#to_xml

Addresses the output issue from #32. Code changed, test added.
The empty lines here can be removed.