Implements #to_xml.
Recursive #to_xml and indentation.

Indentation will be reversed right now, adds overhead only.
Commit will remain to have a place to lookup how it can be solved if wanted.
Working #to_xml and no indent.