You are looking at the HTML representation of the XML format.
HTML is good for debugging, but probably is not suitable for your application.
See complete documentation, or API help for more information.
<?xml version="1.0"?>
<api>
  <query>
    <pages>
      <page pageid="1" ns="0" title="Main Page">
        <images>
          <im ns="6" title="File:Figure paper Final.png" />
          <im ns="6" title="File:Genome browser.png" />
          <im ns="6" title="File:Genotest output table.png" />
          <im ns="6" title="File:Glez Peña et al Figure2.png" />
          <im ns="6" title="File:Gpfiles view.png" />
          <im ns="6" title="File:Pileline gui scheme.png" />
        </images>
      </page>
    </pages>
  </query>
</api>