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">
        <links>
          <pl ns="0" title="Base map" />
          <pl ns="0" title="Collection" />
          <pl ns="0" title="Getting Started with MediaWiki" />
          <pl ns="0" title="KML Files" />
          <pl ns="0" title="Lines" />
          <pl ns="0" title="Narrative" />
          <pl ns="0" title="Narrative Mode" />
          <pl ns="0" title="Pinpoints" />
          <pl ns="0" title="Polygons" />
          <pl ns="10" title="Template:Infobox website" />
        </links>
      </page>
    </pages>
  </query>
</api>