You are looking at the HTML representation of the XML format.
HTML is good for debugging, but probably is not suitable for your application.
See complete documentation, or API help for more information.
<?xml version="1.0"?>
<api>
  <query>
    <logevents>
      <item logid="3316" pageid="1313" ns="0" title="Hacker Dan" type="patrol" action="patrol" user="Dan" timestamp="2017-10-31T02:08:09Z" comment="">
        <patrol auto="1" prev="3969" cur="4022" />
      </item>
      <item logid="3315" pageid="1752" ns="0" title="Legal Threats" type="patrol" action="patrol" user="Dan" timestamp="2017-10-31T02:06:51Z" comment="">
        <patrol auto="1" prev="3593" cur="4021" />
      </item>
      <item logid="3314" pageid="1594" ns="0" title="DWITE" type="patrol" action="patrol" user="Dan" timestamp="2017-06-30T02:00:20Z" comment="">
        <patrol auto="1" prev="2956" cur="4020" />
      </item>
      <item logid="3313" pageid="1" ns="0" title="Main Page" type="patrol" action="patrol" user="Dan" timestamp="2015-09-17T20:57:34Z" comment="">
        <patrol auto="1" prev="4018" cur="4019" />
      </item>
      <item logid="3312" pageid="1" ns="0" title="Main Page" type="patrol" action="patrol" user="Dan" timestamp="2015-09-17T20:57:23Z" comment="">
        <patrol auto="1" prev="3863" cur="4018" />
      </item>
      <item logid="3311" pageid="1663" ns="0" title="CompSci Server" type="patrol" action="patrol" user="Dan" timestamp="2013-04-08T07:38:00Z" comment="">
        <patrol auto="1" prev="3673" cur="3983" />
      </item>
      <item logid="3309" pageid="0" ns="2" title="User:206.188.76.248" type="block" action="block" user="Dan" timestamp="2012-10-26T10:06:02Z" comment="Abusing multiple accounts">
        <block flags="nocreate,noemail" duration="3 months" expiry="2013-01-26T11:06:02Z" />
      </item>
      <item logid="3307" pageid="1754" ns="0" title="Borg irc april 10 2009" type="patrol" action="patrol" user="Dan" timestamp="2012-09-25T09:54:39Z" comment="">
        <patrol auto="1" prev="3606" cur="3971" />
      </item>
      <item logid="3305" pageid="1313" ns="0" title="Hacker Dan" type="patrol" action="patrol" user="Dan" timestamp="2012-09-25T03:45:41Z" comment="">
        <patrol auto="1" prev="3775" cur="3969" />
      </item>
      <item logid="3303" pageid="1825" ns="3" title="User talk:Vahnx" type="patrol" action="patrol" user="Dan" timestamp="2012-01-09T16:15:32Z" comment="">
        <patrol auto="1" prev="0" cur="3965" />
      </item>
    </logevents>
  </query>
  <query-continue>
    <logevents lestart="2012-01-09T16:15:31Z" />
  </query-continue>
</api>