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="20200323200040|6872" />
  </query-continue>
  <query>
    <logevents>
      <item logid="6882" ns="0" title="Castle Attack" pageid="5739" type="patrol" action="patrol" user="Robcfg" timestamp="2020-05-17T15:09:13Z" comment="">
        <patrol cur="9456" prev="0" auto="1" />
      </item>
      <item logid="6881" ns="6" title="File:Castle Attack side B.jpg" pageid="5738" img_sha1="2tvb97bx1kaok6he6eugshiqmu6niwv" img_timestamp="2020-05-17T15:08:09Z" type="upload" action="upload" user="Robcfg" timestamp="2020-05-17T15:08:09Z" comment="Courtesy of munkeyboy" />
      <item logid="6880" ns="6" title="File:Castle Attack side A.jpg" pageid="5737" img_sha1="lusjd1lkoe4j4jcbg25rotq7sgucydq" img_timestamp="2020-05-17T15:07:46Z" type="upload" action="upload" user="Robcfg" timestamp="2020-05-17T15:07:46Z" comment="Courtesy of munkeyboy" />
      <item logid="6879" ns="6" title="File:Castle Attack cover.jpg" pageid="5736" img_sha1="bu07jbnvjfvq3jm3zfsb8ke6f8k7tfr" img_timestamp="2020-05-17T15:06:57Z" type="upload" action="upload" user="Robcfg" timestamp="2020-05-17T15:06:57Z" comment="Courtesy of munkeyboy" />
      <item logid="6878" ns="6" title="File:DragonMMC-Firmware-1.25-betatest.zip" pageid="5735" img_sha1="b1983yha3f1e8n5w0hsk2lmfi6u86hr" img_timestamp="2020-05-06T21:32:11Z" type="upload" action="upload" user="Prime" timestamp="2020-05-06T21:32:11Z" comment="" />
      <item logid="6877" ns="0" title="OS-9 Pascal" pageid="5733" type="patrol" action="patrol" user="Admin" timestamp="2020-04-14T12:33:45Z" comment="">
        <patrol cur="9448" prev="9447" auto="1" />
      </item>
      <item logid="6876" ns="0" title="OS-9 Pascal" pageid="5733" type="patrol" action="patrol" user="Admin" timestamp="2020-04-14T12:32:52Z" comment="">
        <patrol cur="9447" prev="9446" auto="1" />
      </item>
      <item logid="6875" ns="0" title="OS-9 Pascal" pageid="5733" type="patrol" action="patrol" user="Admin" timestamp="2020-04-14T12:32:36Z" comment="">
        <patrol cur="9446" prev="9444" auto="1" />
      </item>
      <item logid="6874" ns="6" title="File:Dragon JimGerrie.zip" pageid="5734" img_sha1="rcp0utldr23jg3prcpdbca84f26br5d" img_timestamp="2020-03-27T10:56:30Z" type="upload" action="upload" user="Jgerrie" timestamp="2020-03-27T10:56:30Z" comment="Distro of G-Soft BASIC programs as of March 27 2020" />
      <item logid="6873" ns="0" title="OS-9 Pascal" pageid="5733" type="patrol" action="patrol" user="Robcfg" timestamp="2020-03-23T20:03:45Z" comment="">
        <patrol cur="9444" prev="0" auto="1" />
      </item>
    </logevents>
  </query>
</api>