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="20130523210320|350" />
  </query-continue>
  <query>
    <logevents>
      <item logid="360" ns="0" title="Get History" pageid="15" type="patrol" action="patrol" user="Admin" timestamp="2015-06-01T17:26:56Z" comment="">
        <patrol cur="362" prev="361" auto="1" />
      </item>
      <item logid="359" ns="0" title="Get History" pageid="15" type="patrol" action="patrol" user="Admin" timestamp="2015-06-01T17:25:36Z" comment="">
        <patrol cur="361" prev="360" auto="1" />
      </item>
      <item logid="358" ns="0" title="Get History" pageid="15" type="patrol" action="patrol" user="Admin" timestamp="2014-07-01T13:01:19Z" comment="">
        <patrol cur="360" prev="359" auto="1" />
      </item>
      <item logid="357" ns="0" title="Get History" pageid="15" type="patrol" action="patrol" user="Admin" timestamp="2014-07-01T13:00:30Z" comment="">
        <patrol cur="359" prev="358" auto="1" />
      </item>
      <item logid="356" ns="0" title="Get History" pageid="15" type="patrol" action="patrol" user="Admin" timestamp="2014-07-01T12:59:34Z" comment="">
        <patrol cur="358" prev="357" auto="1" />
      </item>
      <item logid="355" ns="0" title="Get History" pageid="15" type="patrol" action="patrol" user="Admin" timestamp="2014-07-01T12:59:11Z" comment="">
        <patrol cur="357" prev="333" auto="1" />
      </item>
      <item logid="354" ns="0" title="Send SMS" pageid="11" type="patrol" action="patrol" user="Admin" timestamp="2014-06-27T08:09:57Z" comment="">
        <patrol cur="356" prev="355" auto="1" />
      </item>
      <item logid="353" ns="0" title="Send SMS" pageid="11" type="patrol" action="patrol" user="Admin" timestamp="2014-06-27T08:01:40Z" comment="">
        <patrol cur="355" prev="329" auto="1" />
      </item>
      <item logid="352" ns="0" title="Get Line Details" pageid="23" type="patrol" action="patrol" user="Admin" timestamp="2013-05-23T21:05:23Z" comment="">
        <patrol cur="354" prev="345" auto="1" />
      </item>
      <item logid="351" ns="0" title="Get Calls History" pageid="24" type="patrol" action="patrol" user="Admin" timestamp="2013-05-23T21:04:48Z" comment="">
        <patrol cur="353" prev="349" auto="1" />
      </item>
    </logevents>
  </query>
</api>