I am trying to run the example 24-12 in Priscilla Walmsley's XQuery book.
xquery version "3.1";
declare namespace output = "http://www.w3.org/2010/xslt-xquery-serialization";
declare option output:method "json";
declare option output:indent "yes";
map {
"number": 557,
"props":
<props>
<length>31</length>
</props>
}
I am getting the error 'Cannot add a map to a tree'. Why does this not work? Is there a configuration issue?
I am running this in <oXygen/> XML Editor version 19.1.