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>
    <logevents>
      <item logid="8" ns="2" title="User:Jconway" pageid="0" type="rights" action="rights" user="Lfadmin" timestamp="2018-12-04T18:47:05Z" comment="">
        <rights new="sysop, bureaucrat" old="sysop" />
      </item>
      <item logid="7" ns="2" title="User:Jconway" pageid="0" type="rights" action="rights" user="Lfadmin" timestamp="2018-12-04T18:47:02Z" comment="">
        <rights new="sysop" old="" />
      </item>
      <item logid="6" ns="6" title="File:BengtssonH 20170511-future,RConsortium,flat.pdf" pageid="21" img_sha1="8xcrltihvzs3xc8bh8556gypk5becoi" img_timestamp="2017-05-12T02:52:32Z" type="upload" action="upload" user="Indrajit roy" timestamp="2017-05-12T02:52:32Z" comment="User created page with UploadWizard" />
      <item logid="5" ns="6" title="File:MovingParts Visual.PNG" pageid="18" img_sha1="rgu8poujil0kxaar75hup0l2a3pxrub" img_timestamp="2017-01-21T15:16:20Z" type="upload" action="upload" user="MeharPratapSingh" timestamp="2017-01-21T15:16:20Z" comment="User created page with UploadWizard" />
      <item logid="4" ns="6" title="File:Initial Path Visual.PNG" pageid="17" img_sha1="colloeir3jn9i5mv4o665apgls71hfr" img_timestamp="2017-01-21T15:16:20Z" type="upload" action="upload" user="MeharPratapSingh" timestamp="2017-01-21T15:16:20Z" comment="User created page with UploadWizard" />
      <item logid="3" ns="6" title="File:Tux.png" pageid="5" img_sha1="0pw72b6ejb60vzxk1wipgq2pyexcql9" img_timestamp="2016-05-18T18:14:57Z" type="upload" action="upload" user="Jfarwell" timestamp="2016-05-18T18:14:57Z" comment="User created page with UploadWizard" />
      <item logid="2" ns="6" title="File:Tux6.png" pageid="4" img_sha1="tntf45n13jml39h0mgwcug8jyu097hv" img_timestamp="2016-05-18T18:14:56Z" type="upload" action="upload" user="Jfarwell" timestamp="2016-05-18T18:14:56Z" comment="User created page with UploadWizard" />
      <item logid="1" ns="8" title="MediaWiki:Pt-login" pageid="2" type="patrol" action="patrol" user="Lfadmin" timestamp="2016-03-05T01:15:44Z" comment="">
        <patrol cur="2" prev="0" auto="1" />
      </item>
    </logevents>
  </query>
</api>