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="20180605085252|77" />
  </query-continue>
  <query>
    <logevents>
      <item logid="87" ns="0" title="Angus MacKay" pageid="56" type="patrol" action="patrol" user="Annarky" timestamp="2019-03-24T10:31:51Z" comment="">
        <patrol cur="87" prev="0" auto="1" />
      </item>
      <item logid="86" ns="0" title="Main Page" pageid="1" type="patrol" action="patrol" user="Annarky" timestamp="2019-03-24T10:29:18Z" comment="">
        <patrol cur="86" prev="84" auto="1" />
      </item>
      <item logid="85" ns="0" title="John McAra" pageid="55" type="patrol" action="patrol" user="Annarky" timestamp="2019-03-10T16:32:45Z" comment="">
        <patrol cur="85" prev="0" auto="1" />
      </item>
      <item logid="84" ns="0" title="Main Page" pageid="1" type="patrol" action="patrol" user="Annarky" timestamp="2019-03-10T16:27:59Z" comment="">
        <patrol cur="84" prev="78" auto="1" />
      </item>
      <item logid="83" ns="0" title="The Rent Strike to Bloody Friday" pageid="34" type="patrol" action="patrol" user="Annarky" timestamp="2019-01-19T10:45:36Z" comment="">
        <patrol cur="83" prev="44" auto="1" />
      </item>
      <item logid="82" ns="0" title="The Free Hetherington" pageid="54" type="patrol" action="patrol" user="Annarky" timestamp="2018-06-23T08:54:13Z" comment="">
        <patrol cur="82" prev="81" auto="1" />
      </item>
      <item logid="81" ns="0" title="The Free Hetherington" pageid="54" type="patrol" action="patrol" user="Annarky" timestamp="2018-06-23T08:53:06Z" comment="">
        <patrol cur="81" prev="80" auto="1" />
      </item>
      <item logid="80" ns="0" title="The Free Hetherington" pageid="54" type="patrol" action="patrol" user="Annarky" timestamp="2018-06-23T08:51:23Z" comment="">
        <patrol cur="80" prev="79" auto="1" />
      </item>
      <item logid="79" ns="0" title="The Free Hetherington" pageid="54" type="patrol" action="patrol" user="Annarky" timestamp="2018-06-23T08:49:01Z" comment="">
        <patrol cur="79" prev="0" auto="1" />
      </item>
      <item logid="78" ns="0" title="Main Page" pageid="1" type="patrol" action="patrol" user="Annarky" timestamp="2018-06-23T08:38:30Z" comment="">
        <patrol cur="78" prev="77" auto="1" />
      </item>
    </logevents>
  </query>
</api>