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 lecontinue="20150222232449|19" />
  </query-continue>
  <query>
    <logevents>
      <item logid="29" ns="0" title="XMREngine.builtins" pageid="15" logpage="15" type="patrol" action="patrol" user="Kunta" timestamp="2018-04-09T15:36:34Z" comment="">
        <patrol cur="26" prev="16" auto="1" />
      </item>
      <item logid="28" ns="0" title="XMREngine.scriptdb" pageid="19" logpage="19" type="patrol" action="patrol" user="Kunta" timestamp="2018-04-09T15:29:20Z" comment="">
        <patrol cur="25" prev="24" auto="1" />
      </item>
      <item logid="27" ns="0" title="XMREngine.scriptdb" pageid="19" logpage="19" type="patrol" action="patrol" user="Kunta" timestamp="2018-04-07T14:41:42Z" comment="">
        <patrol cur="24" prev="23" auto="1" />
      </item>
      <item logid="26" ns="0" title="XMREngine.scriptdb" pageid="19" logpage="19" type="patrol" action="patrol" user="Kunta" timestamp="2018-04-07T14:29:59Z" comment="">
        <patrol cur="23" prev="22" auto="1" />
      </item>
      <item logid="25" ns="0" title="XMREngine.scriptdb" pageid="19" logpage="19" type="patrol" action="patrol" user="Kunta" timestamp="2018-04-07T14:19:25Z" comment="">
        <patrol cur="22" prev="21" auto="1" />
      </item>
      <item logid="24" ns="0" title="XMREngine.scriptdb" pageid="19" logpage="19" type="patrol" action="patrol" user="Kunta" timestamp="2018-04-07T14:07:36Z" comment="">
        <patrol cur="21" prev="0" auto="1" />
      </item>
      <item logid="23" ns="0" title="XMREngine Script Engine" pageid="2" logpage="2" type="patrol" action="patrol" user="Kunta" timestamp="2018-04-07T14:01:53Z" comment="">
        <patrol cur="20" prev="3" auto="1" />
      </item>
      <item logid="22" ns="2" title="User:Everest" pageid="0" logpage="0" type="rights" action="rights" user="Admin" timestamp="2015-02-22T23:41:49Z" comment="">
        <rights new="bureaucrat" old="" />
      </item>
      <item logid="21" ns="2" title="User:Everest" pageid="0" logpage="0" userid="3" type="newusers" action="byemail" user="Admin" timestamp="2015-02-22T23:37:51Z" comment="addmin add" />
      <item logid="20" ns="2" title="User:Kunta" pageid="0" logpage="0" type="rights" action="rights" user="Admin" timestamp="2015-02-22T23:25:26Z" comment="because we need one">
        <rights new="sysop" old="" />
      </item>
    </logevents>
  </query>
</api>