Editing XQuery documents may lead to large chunks of content that is not easily readable by
human audience. Also, each developer may have a particular way of writing XQuery code. Oxygen XML Editor assists you in maintaining a consistent code writing style by providing
the Format and Indent action.
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.
The Format and Indent action is available in the menu and also on the toolbar.