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-continue>
    <logevents lestart="2015-12-10T20:11:08Z" />
  </query-continue>
  <query>
    <logevents>
      <item logid="5361" ns="0" title="Help with payments EN" pageid="754" type="patrol" action="patrol" user="Kostjukevich" timestamp="2016-05-18T13:41:49Z" comment="">
        <patrol cur="5332" prev="0" auto="1" />
      </item>
      <item logid="5360" ns="6" title="File:Purchase321.jpg" pageid="753" type="upload" action="upload" img_sha1="dqgmev4lajs0dhqljy5j8fg787v1m1x" img_timestamp="2016-05-18T13:33:03Z" user="Kostjukevich" timestamp="2016-05-18T13:33:03Z" comment="" />
      <item logid="5359" ns="6" title="File:Purchase123.jpg" pageid="752" type="upload" action="upload" img_sha1="sm1wgyo1phe9vtsd4yi9h2vsxfi47iw" img_timestamp="2016-05-18T13:28:33Z" user="Kostjukevich" timestamp="2016-05-18T13:28:33Z" comment="" />
      <item logid="5358" ns="8" title="MediaWiki:CustomSideBar" pageid="165" type="patrol" action="patrol" user="Kostjukevich" timestamp="2016-05-06T13:50:51Z" comment="">
        <patrol cur="5329" prev="5229" auto="1" />
      </item>
      <item logid="5357" ns="0" title="Asteroids" pageid="371" type="patrol" action="patrol" user="Kostjukevich" timestamp="2016-01-28T14:08:15Z" comment="">
        <patrol cur="5328" prev="5327" auto="1" />
      </item>
      <item logid="5356" ns="0" title="Asteroids" pageid="371" type="patrol" action="patrol" user="Kostjukevich" timestamp="2016-01-28T14:08:04Z" comment="">
        <patrol cur="5327" prev="5322" auto="1" />
      </item>
      <item logid="5355" ns="2" title="User:Kostjukevich" pageid="0" type="rights" action="rights" user="Admin" timestamp="2016-01-28T14:06:43Z" comment="">
        <rights new="sysop, Admin" old="" />
      </item>
      <item logid="5354" ns="2" title="User:Kostjukevich" pageid="0" type="newusers" action="create2" userid="2" user="Admin" timestamp="2016-01-28T14:03:18Z" comment="Support" />
      <item logid="5353" ns="0" title="Main asteroid" pageid="372" type="patrol" action="patrol" user="Admin" timestamp="2015-12-10T20:14:44Z" comment="">
        <patrol cur="5326" prev="5325" auto="1" />
      </item>
      <item logid="5352" ns="0" title="Main asteroid" pageid="372" type="patrol" action="patrol" user="Admin" timestamp="2015-12-10T20:12:21Z" comment="">
        <patrol cur="5325" prev="5324" auto="1" />
      </item>
    </logevents>
  </query>
</api>