XML Formatting Preferences
Click Preferences > XML Formatting... to specify how XMLBlueprint should format your XML Document.
The significance of whitespace in an XML Document is normally indicated by attribute xml:space:
|
• | <element xml:space="default"> -- Whitespace within the element (and its child elements) is insignificant and may be formatted. |
• | <element xml:space="preserve"> -- Whitespace within the element (and its child elements) is significant and will not be formatted. |
XMLBlueprint correctly handles attribute xml:space. In addition you may overrule whitespace handling by adding specific elements to these lists:
Preserve whitespace in these elements ("verbatim") -- Elements in this list are formatted as if they have an attribute xml:space="preserve".
Format whitespace in these elements -- Elements in this list are formatted as if they have an attribute xml:space="default".
Elements
|
• | Collapse empty elements -- Empty elements are formatted as: <element/>. |
• | Collapse empty elements and place space before /> -- Empty elements are formatted as: <element />. |
• | Expand empty elements -- Empty elements are formatted as: <element></element>. |
• | Leave as it is -- Empty elements are not formatted. |
Attributes
|
• | Place attributes on same line as the element tag -- Attributes are formatted as: <element attribute-name="attribute-value"> |
• | Place attributes on individual lines below the element tag -- Attributes are formatted as: <element attribute-name="attribute-value" attribute-name="attribute-value"> |
• | Leave as it is -- Attributes are not formatted. |
Text
|
• | Place text on a single line -- Text is formatted as: <line> Hello <bold> BIG </bold> world! </line> |
• | Place text on individual lines below each other -- Text is formatted as: <line> Hello <bold> BIG </bold> Hello <line> |
• | Leave as it is -- Text is not formatted. |
Whitespace
|
• | Clear whitespace-only elements -- Elements with only whitespace (newlines, spaces and tabs) are cleared and then formatted as an empty element. |
• | Remove whitespace-only lines -- Lines with only whitespace (spaces and tabs) are removed. |