Style Guide

Prerequisites

Void elements

Void elements must always have a trailing slash.

<!-- Good -->
<status value="true" />

<!-- Bad -->
<status value="true">

Here be dragons. Unlike in HTML5, you really do need those closing slashes. XML is super strict.

Attributes

Use double-quotes for attribute values (not single-quotes).

<!-- Good -->
<status value="true" />

<!-- Bad -->
<status value='true' />

Indentation

Use 4 spaces (not tabs) for indentation.

<status>
••••<value>true<value>
<status>