XML: Properly preserve & create whitespace

Doesn't work yet.