Implement xml:space="preserve" handling