|Querying Documents / Working with XQuery|
With Oxygen XML Developer, you can validate your documents before using them in your transformation scenarios. The validation uses the Saxon 184.108.40.206 PE processor or the 220.127.116.11 EE, IBM DB2, eXist, Berkeley DB XML, Documentum xDb (X-Hive/DB) 10, or MarkLogic (version 5 or newer) if you installed them. Any other XQuery processor that offers an XQJ API implementation can also be used. This is in conformance with the XQuery Working Draft. The processor is used in two cases: validation of the expression and execution. Although the execution implies a validation, it is faster to check the expression syntactically, without executing it. The errors that occurred in the document are presented in the messages view at the bottom of editor window, with a full description message. As with all error messages, if you click one entry, the line where the error appeared is highlighted.
Figure: XQuery Validation
The Validation options button, available in the menu, allows quick access to the XQuery options in the Oxygen XML Developer preferences.
When you open an XQuery document from a connection that supports validation (for example MarkLogic, or eXist), by default Oxygen XML Developer uses this connection for validation. In case you open an XQuery file using a MarkLogic connection, the validation better resolves imports.