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 pageid="17907" ns="0" title="API">
        <revisions>
          <rev user="Rob Linden" timestamp="2009-01-30T02:00:44Z" comment="Redirecting to [[Category:API]]" contentformat="text/x-wiki" contentmodel="wikitext" xml:space="preserve">#REDIRECT [[:Category:API]]</rev>
        </revisions>
      </page>
      <page pageid="206993" ns="0" title="Main Page">
        <revisions>
          <rev user="Torben Trautman" timestamp="2012-04-15T18:23:50Z" comment="" contentformat="text/x-wiki" contentmodel="wikitext" xml:space="preserve">__NOTOC__
&lt;div align=&quot;center&quot;&gt;{{Main Page/Welcome}}&lt;br /&gt;
{|cellspacing=&quot;0&quot;
|valign=&quot;top&quot; width=&quot;50%&quot;|
{{Main Page/KB}}
{{Main Page/Policies}}
{{Main Page/Open Source}}
{{Main Page/LSL}}
{{Main Page/Community Resources}}
{{Main Page/QA}}
'''[[:Category:Portals|See all portals]]'''
|valign=&quot;top&quot; align=&quot;left&quot; width=&quot;50%&quot;|
{{Main Page/Featured Pages}}
{{Main Page/Creation}}
{{Main Page/Web Services}}
{{Main Page/Marketing}}

|}&lt;/div&gt;
__NOEDITSECTION__</rev>
        </revisions>
      </page>
    </pages>
  </query>
</api>