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="20180524234944|3942" />
  </query-continue>
  <query>
    <logevents>
      <item logid="3952" ns="0" title="Planning/3.0" pageid="1261" type="patrol" action="patrol" user="Pm215" timestamp="2018-07-17T17:20:19Z" comment="">
        <patrol cur="7778" prev="7733" auto="1" />
      </item>
      <item logid="3951" ns="0" title="ChangeLog/3.0" pageid="1267" type="patrol" action="patrol" user="Paolo Bonzini" timestamp="2018-07-14T15:58:24Z" comment="">
        <patrol cur="7771" prev="0" auto="1" />
      </item>
      <item logid="3950" ns="0" title="Links" pageid="5" type="patrol" action="patrol" user="Pm215" timestamp="2018-07-08T10:31:19Z" comment="">
        <patrol cur="7760" prev="7281" auto="1" />
      </item>
      <item logid="3949" ns="2" title="User:Hsp.cat7" pageid="0" userid="1321" type="newusers" action="create2" user="Mcayland" timestamp="2018-06-21T15:39:11Z" comment="PowerPC platform documentation updates" />
      <item logid="3948" ns="0" title="Planning/2.11" pageid="1209" type="patrol" action="patrol" user="Mdroth" timestamp="2018-06-19T01:42:18Z" comment="">
        <patrol cur="7645" prev="7644" auto="1" />
      </item>
      <item logid="3947" ns="0" title="Planning/2.11" pageid="1209" type="patrol" action="patrol" user="Mdroth" timestamp="2018-06-19T01:41:40Z" comment="">
        <patrol cur="7644" prev="7397" auto="1" />
      </item>
      <item logid="3946" ns="0" title="Planning/3.0" pageid="1261" type="patrol" action="patrol" user="Pm215" timestamp="2018-06-08T16:17:18Z" comment="">
        <patrol cur="7632" prev="7605" auto="1" />
      </item>
      <item logid="3945" ns="0" title="Features/qtest driver framework" pageid="1256" type="patrol" action="patrol" user="Paolo Bonzini" timestamp="2018-06-05T09:54:31Z" comment="">
        <patrol cur="7618" prev="7616" auto="1" />
      </item>
      <item logid="3944" ns="0" title="Features/qtest driver framework" pageid="1256" type="patrol" action="patrol" user="Paolo Bonzini" timestamp="2018-06-01T17:02:23Z" comment="">
        <patrol cur="7616" prev="7615" auto="1" />
      </item>
      <item logid="3943" ns="0" title="Features/qtest driver framework" pageid="1256" type="patrol" action="patrol" user="Paolo Bonzini" timestamp="2018-06-01T17:01:40Z" comment="">
        <patrol cur="7615" prev="7532" auto="1" />
      </item>
    </logevents>
  </query>
</api>