Formatting and Indenting XQuery Documents
Editing XQuery documents may lead to large chunks of content that are not easily readable by human audience. Also, each developer may have a particular way of writing XQuery code. Oxygen XML Editor plugin assists you in maintaining a consistent code writing style with the Format and Indent action that is available in the menu and also on the toolbar..
The Format and Indent action achieves this by performing the following steps:
- Manages whitespaces, by collapsing or inserting space characters where needed.
- Formats complex expressions on multiple, more readable lines by properly indenting each of them. The amount of whitespaces that form an indent unit is controlled through one of the Indent with tabs and Indent size options from the Format Preferences page.
Note
These operations can be performed only if your XQuery document conforms with W3C
XQuery 1.0, XQuery Update Facility 1.0, and XQuery 3.0 specifications. If the Format and
Indent operation fails, the document is left unaltered and an error message is
presented in the Results view.