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="11808" pageid="0" ns="2" title="User:Fenryn" type="rights" action="rights" user="Baszalmstra" timestamp="2018-06-06T15:12:16Z" comment="">
        <rights new="confirmeduser" old="" />
      </item>
      <item logid="11807" pageid="0" ns="2" title="User:Fenryn" type="newusers" action="create2" user="Joni" timestamp="2018-05-23T13:40:20Z" comment="password sent by e-mail">
        <param>9771</param>
      </item>
      <item logid="11806" pageid="0" ns="2" title="User:Joni" type="rights" action="rights" user="Baszalmstra" timestamp="2018-05-22T18:25:38Z" comment="">
        <rights new="sysop" old="" />
      </item>
      <item logid="11805" pageid="0" ns="2" title="User:Joni" type="newusers" action="create2" user="Baszalmstra" timestamp="2018-05-22T18:24:09Z" comment="password sent by e-mail">
        <param>9770</param>
      </item>
      <item logid="11804" pageid="1624" ns="2" title="User:Paste" type="rights" action="rights" user="Maarten" timestamp="2016-10-26T07:21:42Z" comment="">
        <rights new="confirmeduser" old="" />
      </item>
      <item logid="11803" pageid="12597" ns="6" title="File:NATURAL GAS.png" type="upload" action="upload" user="Salanmander" timestamp="2016-01-31T14:50:35Z" comment="" />
      <item logid="11802" pageid="12596" ns="6" title="File:COLORFUL LAKELET.png" type="upload" action="upload" user="Salanmander" timestamp="2016-01-31T14:50:22Z" comment="" />
      <item logid="11801" pageid="12595" ns="6" title="File:BRAZILWOOD LARGE.png" type="upload" action="upload" user="Salanmander" timestamp="2016-01-31T14:12:13Z" comment="" />
      <item logid="11800" pageid="12594" ns="6" title="File:BULL.png" type="upload" action="upload" user="Salanmander" timestamp="2016-01-31T14:02:55Z" comment="" />
      <item logid="11799" pageid="12593" ns="6" title="File:KIWIFRUIT SMALL.png" type="upload" action="upload" user="Salanmander" timestamp="2016-01-31T13:55:07Z" comment="" />
    </logevents>
  </query>
  <query-continue>
    <logevents lestart="2016-01-31T13:54:40Z" />
  </query-continue>
</api>