Hi Jidanni, hi Michael,
our CHOP flag is subject to frequent discussions, which is why we will eventually change the default to FALSE. For now, we are still a little bit resistant, as such a change will change the behavior of existing BaseX applications out there, so we’ll probably combine the switch with the next major release.
For now, you can preserve whitespaces by e.g..
-- adding the line CHOP=false in your .basex configuration file -- using the basex command-line flag -w -- using "set chop false" as first command, or setting the options in any other way described in our Wiki [1].
Hope this helps, Christian