formatting in XmlWriterTest
improved text interpretation in StructuredHandler and XmlWriter