It seems to be a problem with elements containing only whitespace characters:
serialize(<xml> <title> Demonstrating the CHOP flag </title> <text xml:space="preserve">To <b>be </b><i > </i >, or not to <b>be d asdf </b>, that is the question.</text> </xml>)
<b> Tags work as expected, but <i> Tags will be stripped to the empty element <i/>. Maybe this has to do with the handling of empty elements?
Sebastian
Am 09.09.2016 um 11:00 schrieb Alexander Holupirek alex@holupirek.de:
On 08.09.2016, at 23:17, Hans-Juergen Rennau hrennau@yahoo.de wrote:
Dear BaseX team,
is this a bug?
serialize(<e> </e>)
returns
<e/>
I need my blanks!
Hans-Jürgen
Maybe your data is stored/processed with whitespaces stripped off?
------------------------------------------------------- >>> business. people. technology. <<< -------------------------------------------------------
adesso AG mit Sitz in Dortmund Vorstand: Michael Kenfenheuer (Vors.), Christoph Junge, Andreas Prenneis Vorsitzender des Aufsichtsrates: Prof. Dr. Volker Gruhn Amtsgericht Dortmund HRB 20663