You are looking at the HTML representation of the XML format.
HTML is good for debugging, but is unsuitable for application use.
Specify the format parameter to change the output format.
To see the non HTML representation of the XML format, set format=xml.
See the complete documentation, or API help for more information.
<?xml version="1.0"?>
<api>
  <query-continue>
    <revisions rvcontinue="18" />
  </query-continue>
  <query>
    <pages>
      <page pageid="5" ns="0" title="Main Page">
        <revisions>
          <rev user="" anon="" timestamp="2004-06-22T22:59:49Z" comment="" />
          <rev user="Chris" timestamp="2004-06-24T10:50:56Z" comment="hello world!" />
          <rev user="Chris" timestamp="2004-06-24T10:52:09Z" comment="Added link to history page" />
          <rev user="Chris" timestamp="2004-06-24T11:07:20Z" comment="change case of links" />
          <rev user="Chris" timestamp="2004-06-24T12:54:27Z" comment="Added link to cacert root cert and other stuff" />
        </revisions>
      </page>
    </pages>
  </query>
</api>