Hi Jonathan,
This is intentional.
It is not always clear if surrounding whitespace should be removed, and if we make a choice to always remove this whitespace, we will be disabling scenarios where it's actually needed. CR/LF is also considered whitespace, so you'll see the same behavior for
those characters as well.
If you need to ignore whitespace from an XML node, you can use the StringLeftTrim and StringRightTrim functoids before consuming it.
Thanks,
Kranthi.