XMLDocument.PreserveWhiteSpace

From Xojo Documentation

Property (As Boolean )
aXMLDocument.PreserveWhiteSpace = newBooleanValue
or
BooleanValue = aXMLDocument.PreserveWhiteSpace

Supported for all project types and targets.

When False, white space characters (spaces, carriage returns, tabs, etc.) are removed from within XML elements when the XML file is loaded. The default is False.

Notes

When True, white space characters are retained. You can only change PreserveWhiteSpace to True before calling LoadXml. It has no affect when set after the XML file has been loaded.

As an example, the following XML section has a space within the <trans> node:

 <trans loc="fr"> </trans>

When PreserveWhiteSpace is False, the XML gets loaded as:

 <trans loc="fr"></trans>

When PreserveWhiteSpace is True, the space in the XML node is retained:

 <trans loc="fr"> </trans>

Note that this can cause you to have to look at additional nodes that might otherwise have been blank.