On 07/07/2025 11:56, [email protected] wrote:
Dear All, I upgraded from v9.7.3 to v12 and all my queries are giving an error because of a simple problem. This is my XML: <xml><number integer="0"><number></xml> xQuery: for $b in //*[@integer] where $b = '' return replace value of node $b with '0' The above works without problems. It puts a zero and this is the result: <xml><number integer="0">0</number></xml> BUT if there is a CRLF in the <number> node it does not replace the node with a 0. <xml><number integer="0"> <number></xml> Now the same query does not work in v12. It works in v9.7.3, so I have had to downgrade. All my queries where I am looking for a blank node have stopped working. Could you please show me some option using which I can ignore the CRLF and continue searching for blank nodes the way I used to be in the past ?
I think with previous versions the default XML parsing stripped whitespace while that is no longer the case. So look in the XML parser options in the BaseX documentation.

