Query generate 'XDMP-CHILDNODEKIND: $final — element nodes cannot have binary node children' error
问题 Below is my simple query, that reads all files from a directory and holds all files in $final Variable save in one single file. But when run this query, after taking some time, it prompt [1.0-ml] XDMP-CHILDNODEKIND: $final -- element nodes cannot have binary node children error. let $input-dir :=xdmp:filesystem-directory("d:\work\may\06-05-2019\all- feeds-input-output\clc\log\clc-true-ouput\")/dir:entry let $final := for $each at $i in $input-dir return xdmp:document-get($each/dir:pathname