Am 26.02.2019 um 18:52 schrieb Mark Bordelon:
A follow-up: starting basex -w does NOT seem to solve completely my issue after all. Real data (more complicated than the simplified example) still does not query correctly: text nodes from after later elements are displayed in the place of null text nodes. I’ll try to get a better example, still simplified, that shows this.
Just to make sure, if the data is already in the database and has been inserted with the default whitespace chopping turned on, the result you get for your sample is correct.
So at least in my understanding the only way to get the result you want is to make sure the original input XML is inserted again into the database, this time with chopping turned off.