I am finding strange problems when I try using 7.7 which didn't appear before. I was building queries with XQUERY followed by \n and then the query, which worked in 7.6. XQUERY <Documents> { for $doc in collection('oscrtest/documents/Photograph')/Document order by $doc/Header/TimeStamp descending return $doc } </Documents> Now it warns me about the syntax of my query: "Syntax: XQUERY [query]" So then I take away the \n so that the query begins after "XQUERY " and my query becomes: XQUERY <Documents> { for $doc in collection('oscrtest/documents/Photograph')/Document order by $doc/Header/TimeStamp descending return $doc } </Documents> upon which it reports: "[XPST0003] Expecting closing tag </Documents>." Puzzling about why this happens, I adjust the query to: XQUERY <Documents>{ for $doc in collection('oscrtest/documents/Photograph')/Document order by $doc/Header/TimeStamp descending return $doc }</Documents> but then it reports: "[XPST0003] Expecting expression." I will have to stick to 7.6 until I understand what to do about these problems. What am I missing? -- Delving BV, Vasteland 8, Rotterdam http://www.delving.eu http://twitter.com/fluxe skype: beautifulcode +31629339805