Empty Elements

In some cases, an element might not enclose any content. In XML, such elements are called empty elements. An empty element can be represented either by a start tag and an end tag or by a start tag that contains a forward slash (/) before the right angle bracket (>). For example, the following two empty elements are equivalent:

    <priority type="urgent"/>
    <priority type="urgent"></priority>

<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<!-- This is the first message in the document -->
   <message>
        <priority type="urgent"/>
        <to>you@yourAddress.com</to>
        <from>me@myAddress.com</from>
        <code>
        <![CDATA[<tag> content </tag>]]>
        <code>
        <subject >Car lights on</subject>
        <?cocoon-process type="xslt"?>
        <body type=" text without graphic">
         Owner of vehicle with license plate
         454-561, your lights are on!
        </body>
    </message>

Click the Next button to continue.