Put spaces between multiple attributes in element#to_xml

Addresses the output issue from #32. Code changed, test added.
I'd prefer it if this were written as following instead:

> include multiple attributes separated by a space