Store attribute data in the XML tree

Closes #4
Make sure that the element's default namespace is set