Moved attribute rendering

Refactoed the Xml#tag method by moving the attribute rendering into it's
own method.

See #24