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="20180822155417|3987" />
  </query-continue>
  <query>
    <logevents>
      <item logid="3997" ns="0" title="ToDo/CodeTransitions" pageid="950" type="patrol" action="patrol" user="Pm215" timestamp="2018-10-11T09:51:56Z" comment="">
        <patrol cur="7915" prev="7898" auto="1" />
      </item>
      <item logid="3996" ns="6" title="File:C790.pdf" pageid="1273" img_sha1="o0m60381p3hbsorbuoj3bbdm8sioede" img_timestamp="2018-10-06T09:30:35Z" type="upload" action="upload" user="F4bug" timestamp="2018-10-06T09:30:35Z" comment="TX System RISC TX79 Core Architecture manual" />
      <item logid="3995" ns="6" title="File:DSA-763437.pdf" pageid="1272" img_sha1="2rd253ct4jtei51cpuis4ofqg4neb5p" img_timestamp="2018-10-05T21:56:58Z" type="upload" action="upload" user="F4bug" timestamp="2018-10-05T21:56:58Z" comment="TX System RISC TX79 Family TMPR7901" />
      <item logid="3994" ns="6" title="File:DSAISS00092955.pdf" pageid="1271" img_sha1="mhl1ucw81a82mxo18bq9x5e2j4ln5x6" img_timestamp="2018-10-05T21:44:09Z" type="upload" action="upload" user="F4bug" timestamp="2018-10-05T21:44:09Z" comment="32-Bit RISC Microprocessor TX39 Family TMPR3904F" />
      <item logid="3993" ns="6" title="File:DSAE0022432.pdf" pageid="1270" img_sha1="n7m0o31vn8aji1mbukglfrxwol1v9tz" img_timestamp="2018-10-05T21:36:34Z" type="upload" action="upload" user="F4bug" timestamp="2018-10-05T21:36:34Z" comment="32-Bit TX System RISC TX39 Family Architecture manual" />
      <item logid="3992" ns="0" title="Planning/3.1" pageid="1269" type="patrol" action="patrol" user="Pm215" timestamp="2018-10-01T08:41:44Z" comment="">
        <patrol cur="7897" prev="7896" auto="1" />
      </item>
      <item logid="3991" ns="0" title="Planning/3.1" pageid="1269" type="patrol" action="patrol" user="Pm215" timestamp="2018-10-01T08:39:03Z" comment="">
        <patrol cur="7896" prev="0" auto="1" />
      </item>
      <item logid="3990" ns="0" title="ToDo/CodeTransitions" pageid="950" type="patrol" action="patrol" user="Pm215" timestamp="2018-09-25T16:43:03Z" comment="">
        <patrol cur="7894" prev="7887" auto="1" />
      </item>
      <item logid="3989" ns="0" title="SecurityProcess" pageid="951" type="patrol" action="patrol" user="Paolo Bonzini" timestamp="2018-09-12T14:45:00Z" comment="">
        <patrol cur="7890" prev="5833" auto="1" />
      </item>
      <item logid="3988" ns="0" title="ToDo/CodeTransitions" pageid="950" type="patrol" action="patrol" user="Pm215" timestamp="2018-08-23T14:56:41Z" comment="">
        <patrol cur="7887" prev="7885" auto="1" />
      </item>
    </logevents>
  </query>
</api>