To configure the XML Formatting options, open the Preferences dialog box and go to .
This section includes the following drop-down boxes:
The inline elements are indented on separate lines if they are preceded by white spaces and they follow another element start or end tag. For example:
<root>
text <parent> <child></child> </parent>
</root><root> text <parent>
<child/>
</parent>
</root><root> text <parent> <child/> </parent> </root><a atr1="v1"/>). If selected, the same operation
results in empty XML elements being serialized in expanded form (for example,
<a atr1="v1"></a>).This section controls how the application handles whitespaces found in XML content. You can Add or Remove element names or simplified XPath expressions in the various tabs.
The XPath expressions can accept multiple attribute conditions and inside each condition you can use AND/OR boolean operators and parentheses to override the priority.
*[@a and @b or @c and @d]
*[@a and (@b or @c) and @d]elementName//elementName/elementName1/elementName2/elementName3//xs:localName Note: The namespace prefixes (such as
xs) are treated as part of the element name without taking its
binding to a namespace into account.//xs:documentation[@lang="en"]Includes the following options:
xml:space attribute set to preserve or by
their presence in the Preserve space tab of the Element
Spacing list) are ignored by the Format and
Indent operation. When this option is selected and you edit one of
these elements, its content is formatted.