When I use the GUI application I can see some error description (even if it a little terse) when my queries are incorrect. For instance I might get:
Stopped at tableFields.xq, 27/50: [XQST0118] Different start and end tag: <Artifact>...</Artiact>.
If I submit a query like <Artifact></Artiact>
However, I cannot seem to find an API that brings me that information? I tried:
xquery:parse("<B></C>", map {'pass':true()})
but that did not get the result I expected. Also, while we're at at it, it would be nice to also get the optimized query.
Best Regards
Peter Villadsen Principal Architect Microsoft Business Applications Group