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>
    <pages>
      <page ns="0" title="API" missing="" />
      <page pageid="2844" ns="0" title="Main Page">
        <revisions>
          <rev user="Bryan" timestamp="2009-01-27T17:29:20Z" comment="[[Main Page]] moved to [[Math and the Art of M. C. Escher]]: Calling it Main Page wasn&#039;t helping at all with search engines, plus it looks like a title." contentformat="text/x-wiki" contentmodel="wikitext" xml:space="preserve">#REDIRECT [[Math and the Art of M. C. Escher]]</rev>
        </revisions>
      </page>
    </pages>
  </query>
</api>