Because of the way your mail is formatted, I can't actually
see exactly what the problem is.
You don't say how you are running the query, e.g. whether it
is from the command line, from within a tool like oXygen, or
from a Java API such as XQJ or s9api. Most likely, you are
running with the serialization parameter indent="yes", which
explicitly gives Saxon the freedom to adjust the amount of
whitespace between element nodes.
On 28/09/2012 08:40, Gleb Gawriljuk wrote:
I have the following problem:
On the XML:
I execute the xQuery:
let $x := doc('XML_PATH') return( if
(not($x/Student and $x/Student/StudentName and
$x/Student/StudentID)) then error() else
and get the resulting XML :
which has additional whitespace before the
child-notes. As in my working environment I can only
compare the xml-files as strings this becomes a
little problem for me.
Can anyone explain to me why this happens, or has
someone a solution for it, so I get exactly the same