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="20160823180946|4646" />
  </query-continue>
  <query>
    <logevents>
      <item logid="4656" ns="0" title="Fixed IP Address for MJPEG Cameras" pageid="3156" type="patrol" action="patrol" user="X10douglas" timestamp="2018-01-12T03:32:59Z" comment="">
        <patrol cur="13876" prev="11450" auto="1" />
      </item>
      <item logid="4655" ns="0" title="NEW Fixed IP Address for P2P HD Cameras" pageid="4556" type="patrol" action="patrol" user="X10douglas" timestamp="2018-01-12T03:30:31Z" comment="">
        <patrol cur="13875" prev="13874" auto="1" />
      </item>
      <item logid="4654" ns="0" title="NEW Fixed IP Address for P2P HD Cameras" pageid="4556" type="patrol" action="patrol" user="X10douglas" timestamp="2018-01-12T03:27:15Z" comment="">
        <patrol cur="13874" prev="13770" auto="1" />
      </item>
      <item logid="4653" ns="6" title="File:Port.jpg" pageid="4606" img_sha1="i7bodi5efuh239i1u2wqkeit7a1glgw" img_timestamp="2018-01-12T03:26:46Z" type="upload" action="upload" user="X10douglas" timestamp="2018-01-12T03:26:46Z" comment="" />
      <item logid="4652" ns="0" title="SS13A" pageid="2266" type="patrol" action="patrol" user="X10douglas" timestamp="2017-01-22T20:57:02Z" comment="">
        <patrol cur="13872" prev="11980" auto="1" />
      </item>
      <item logid="4651" ns="0" title="MS14A" pageid="2241" type="patrol" action="patrol" user="X10douglas" timestamp="2016-11-26T22:18:02Z" comment="">
        <patrol cur="13871" prev="13773" auto="1" />
      </item>
      <item logid="4650" ns="0" title="VR36A" pageid="2258" type="patrol" action="patrol" user="X10douglas" timestamp="2016-11-13T18:36:42Z" comment="">
        <patrol cur="13870" prev="10627" auto="1" />
      </item>
      <item logid="4649" ns="0" title="Noise on 3-way Traveler Wires" pageid="1408" type="patrol" action="patrol" user="X10douglas" timestamp="2016-08-31T23:45:57Z" comment="">
        <patrol cur="13869" prev="6377" auto="1" />
      </item>
      <item logid="4648" ns="0" title="Smart Power Line Command (PLC) Repeater Operating Instructions" pageid="4492" type="patrol" action="patrol" user="X10douglas" timestamp="2016-08-23T18:10:30Z" comment="">
        <patrol cur="13868" prev="13867" auto="1" />
      </item>
      <item logid="4647" ns="0" title="Smart Power Line Command (PLC) Repeater Operating Instructions" pageid="4492" type="patrol" action="patrol" user="X10douglas" timestamp="2016-08-23T18:10:17Z" comment="">
        <patrol cur="13867" prev="13866" auto="1" />
      </item>
    </logevents>
  </query>
</api>