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="1405" ns="0" title="Main Page">
        <templates>
          <tl ns="0" title="Fred Moore member spotlight" />
          <tl ns="10" title="Template:Click" />
          <tl ns="10" title="Template:Storage domains" />
          <tl ns="10" title="Template:Storage member spotlight" />
          <tl ns="10" title="Template:Storage member spotlight/Wednesday" />
          <tl ns="10" title="Template:Storage professional alerts" />
          <tl ns="10" title="Template:Storage upcoming events" />
          <tl ns="10" title="Template:Wikibon blurb" />
          <tl ns="10" title="Template:Wikibon navicons" />
          <tl ns="100" title="Portal:Storage/Featured article/Thursday" />
        </templates>
      </page>
    </pages>
  </query>
</api>