10.3.4.8.3 XML Formatting Options

This dialog box allows you to specify the formatting settings for the XML Editor. You can access the Options dialog box from the Tools menu.

Note: These settings are available when selecting the Text Editor folder, the XML folder, and the Formatting option from the Options dialog box.

Attributes

Preserve manual attribute formatting Attributes are not reformatted, which is the default.

Note: If the attributes are on multiple lines, the editor indents each line of attributes to match the indentation of the parent element.

Align Attributes Each On Their Own Line

Aligns the second and subsequent attributes vertically to match the indentation of the first attribute. The following XML text is an example of how the attributes are aligned.

<item id = "123-A"
      name = "hammer"
      price = "9.95">
	  </item>

Auto Reformat

On Paste From the Clipboard

Reformats XML text pasted from the Clipboard.

On Completion of End Tag

Reformats the element when the end tag is completed.

Mixed Content

Preserve Mixed Content by Default

Determines whether the editor reformats mixed content. By default, the editor attempts to reformat mixed content, except when the content is found in an xml:space="preserve" scope.

If an element contains a mix of text and markup, the contents are considered to be mixed content. The following is an example of an element with mixed content.

<dir>c:\data\AlphaProject\
  <file readOnly="false">test1.txt</file>
  <file readOnly="false">test2.txt</file>
  </dir>