XML Prolog

An XML document typically starts with a prolog. A prolog helps:

  • Identify the document type as XML
  • Include any meta-information about the document, such as author, copyright, description, and keywords

The prolog is optional, but it is a good practice to include it in an XML document. In the code snippet on the right, the prolog is:

    <?xml version="1.0" encoding="ISO-859-1" standalone="yes"?>

<?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.