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-10T19:35:38Z" />
  </query-continue>
  <query>
    <logevents>
      <item logid="5358" ns="0" title="Help with payments" pageid="458" type="patrol" action="patrol" user="Kostjukevich" timestamp="2016-02-12T14:22:02Z" comment="">
        <patrol cur="5327" prev="3844" auto="1" />
      </item>
      <item logid="5357" ns="2" title="User:Turkish support" pageid="0" type="rights" action="rights" user="Admin" timestamp="2016-01-28T14:12:49Z" comment="">
        <rights new="sysop" old="" />
      </item>
      <item logid="5356" ns="2" title="User:Kostjukevich" pageid="0" type="rights" action="rights" user="Admin" timestamp="2016-01-28T14:12:22Z" comment="">
        <rights new="sysop, Admin" old="" />
      </item>
      <item logid="5355" ns="2" title="User:Turkish support" pageid="0" type="newusers" action="create2" userid="3" user="Admin" timestamp="2016-01-28T14:12:02Z" comment="" />
      <item logid="5354" ns="2" title="User:Kostjukevich" pageid="0" type="newusers" action="create2" userid="2" user="Admin" timestamp="2016-01-28T14:11:18Z" comment="" />
      <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>
      <item logid="5351" ns="0" title="Main asteroid" pageid="372" type="patrol" action="patrol" user="Admin" timestamp="2015-12-10T20:11:08Z" comment="">
        <patrol cur="5324" prev="5323" auto="1" />
      </item>
      <item logid="5350" ns="0" title="Main asteroid" pageid="372" type="patrol" action="patrol" user="Admin" timestamp="2015-12-10T20:09:47Z" comment="">
        <patrol cur="5323" prev="3750" auto="1" />
      </item>
      <item logid="5349" ns="0" title="Asteroids" pageid="371" type="patrol" action="patrol" user="Admin" timestamp="2015-12-10T19:37:20Z" comment="">
        <patrol cur="5322" prev="5321" auto="1" />
      </item>
    </logevents>
  </query>
</api>