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-02-04T20:32:13Z" />
  </query-continue>
  <query>
    <logevents>
      <item logid="3051" pageid="2938" ns="0" title="CSharp JSON Example" type="patrol" action="patrol" user="Bzurkovic" timestamp="2018-02-10T00:01:39Z" comment="">
        <patrol cur="3359" prev="0" auto="1" />
      </item>
      <item logid="3050" pageid="2937" ns="0" title="Java JSON Example" type="patrol" action="patrol" user="Bzurkovic" timestamp="2018-02-10T00:00:17Z" comment="">
        <patrol cur="3358" prev="3357" auto="1" />
      </item>
      <item logid="3049" pageid="2937" ns="0" title="Java JSON Example" type="patrol" action="patrol" user="Bzurkovic" timestamp="2018-02-09T23:57:27Z" comment="">
        <patrol cur="3357" prev="0" auto="1" />
      </item>
      <item logid="3048" pageid="2933" ns="0" title="Send REST" type="patrol" action="patrol" user="Bzurkovic" timestamp="2018-02-09T23:56:50Z" comment="">
        <patrol cur="3356" prev="3354" auto="1" />
      </item>
      <item logid="3047" pageid="1530" ns="0" title="Carrier codes" type="patrol" action="patrol" user="Bzurkovic" timestamp="2016-02-13T01:22:24Z" comment="">
        <patrol cur="3355" prev="3326" auto="1" />
      </item>
      <item logid="3046" pageid="2933" ns="0" title="Send REST" type="patrol" action="patrol" user="Bzurkovic" timestamp="2015-02-04T20:37:17Z" comment="">
        <patrol cur="3354" prev="3352" auto="1" />
      </item>
      <item logid="3045" pageid="0" ns="0" title="C" type="delete" action="delete" user="Bzurkovic" timestamp="2015-02-04T20:36:47Z" comment="No longer needed" />
      <item logid="3044" pageid="2936" ns="0" title="CSharp Example" type="patrol" action="patrol" user="Bzurkovic" timestamp="2015-02-04T20:35:53Z" comment="">
        <patrol cur="3353" prev="0" auto="1" />
      </item>
      <item logid="3043" pageid="2933" ns="0" title="Send REST" type="patrol" action="patrol" user="Bzurkovic" timestamp="2015-02-04T20:35:27Z" comment="">
        <patrol cur="3352" prev="3351" auto="1" />
      </item>
      <item logid="3042" pageid="2933" ns="0" title="Send REST" type="patrol" action="patrol" user="Bzurkovic" timestamp="2015-02-04T20:33:57Z" comment="">
        <patrol cur="3351" prev="3350" auto="1" />
      </item>
    </logevents>
  </query>
</api>