[xml] XmlElement.InnserXml seems to preserve whitespaces.

Fix for mdoc test regression (see commit comments on #661430f).