4.1 Prepare the Document

Open a text editor and enter the following text (or download the source file referenced above):

<?xml version="1.0" encoding="UTF-8"?>
<cmrl xmlns:dotgo="http://dotgo.com/cmrl/1.0">

  <match pattern="">
    <message>
      <content>Welcome to the DOTGO example.</content>
    </message>
  </match>

  <match pattern="red">

    <match pattern="circle">
      <message>
        <content>You have selected a red circle.</content>
      </message>
    </match>

    <match pattern="square">
      <message>
        <content>You have selected a red square.</content>
      </message>
    </match>

  </match>

  <match pattern="green">

    <match pattern="circle">
      <message>
        <content>You have selected a green circle.</content>
      </message>
    </match>

  </match>

  <match pattern="engine">
    <engine href="http://dotgo.com/cgi-bin/examples/current_time.cgi"/>
  </match>

  <match pattern="rss">
    <rss href="http://dotgo.com/support/documentation/example2/example.rss"/>
  </match>

  <match pattern="*">
    <message>
      <content>Nothing relevant here.</content>
    </message>
  </match>

</cmrl>
Again save the document as "index.cmrl," and again install and validate the document as in the previous example.

Now let's see what this document does. We will again take as an example the internet domain "example.com," although of course you should substitute your actual internet domain name in place of "example," and you should text to the phone number corresponding to your actual top-level domain.