Hi Andreas,
in a Java module I create a "org.w3c.dom.Node" (with
java.xml.parsers.DocumentBuilder) and return it to XQuery/BaseX.
Could you please provide us with a minimized Java example class that allows us to reproduce the problem?
Thanks in advance, Christian