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="127" ns="0" title="Main Page">
        <templates>
          <tl ns="10" title="Шаблон:!" />
          <tl ns="10" title="Шаблон:*mp" />
          <tl ns="10" title="Шаблон:-" />
          <tl ns="10" title="Шаблон:Did you know" />
          <tl ns="10" title="Шаблон:In the news" />
          <tl ns="10" title="Шаблон:Main Page banner" />
          <tl ns="10" title="Шаблон:POTD protected/default" />
        </templates>
      </page>
    </pages>
  </query>
</api>