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="9780" pageid="0" ns="0" title="Dafabet Casino" type="protect" action="unprotect" user="Admin" timestamp="2017-10-09T17:19:36Z" comment="" />
      <item logid="9779" pageid="0" ns="0" title="Dafabet Casino" type="protect" action="protect" user="Admin" timestamp="2017-10-09T16:26:16Z" comment="">
        <param>‎[create=sysop] (indefinite)</param>
        <param />
      </item>
      <item logid="9778" pageid="0" ns="0" title="Dafabet Casino" type="delete" action="delete" user="Admin" timestamp="2017-10-01T13:19:01Z" comment="content was: &quot;Dafabet Casino, Established in 2004 by Unknown is an online casino using the Playtech software, licensed in Philippines.   == Supported Languages ==  Chinese, English...&quot; (and the only contributor was &quot;[[Special:Contributions/Admin|Admin]]&quot;)" />
      <item logid="9777" pageid="1837" ns="0" title="PlayMillion Casino" type="patrol" action="patrol" user="Admin" timestamp="2017-10-01T11:24:33Z" comment="">
        <patrol cur="7513" prev="1992" auto="1" />
      </item>
      <item logid="9776" pageid="0" ns="2" title="User:LoreneJarman" type="newusers" action="create" user="LoreneJarman" timestamp="2015-03-22T13:31:11Z" comment="">
        <param>288</param>
      </item>
      <item logid="9775" pageid="0" ns="2" title="User:IonaHolcomb" type="newusers" action="create" user="IonaHolcomb" timestamp="2015-03-22T06:46:39Z" comment="">
        <param>287</param>
      </item>
      <item logid="9774" pageid="0" ns="2" title="User:AubreySaiz33349" type="newusers" action="create" user="AubreySaiz33349" timestamp="2015-03-21T17:28:35Z" comment="">
        <param>286</param>
      </item>
      <item logid="9773" pageid="0" ns="2" title="User:Caryn34193" type="newusers" action="create" user="Caryn34193" timestamp="2015-03-21T15:38:29Z" comment="">
        <param>285</param>
      </item>
      <item logid="9772" pageid="0" ns="2" title="User:KarissaPreiss" type="newusers" action="create" user="KarissaPreiss" timestamp="2015-03-21T05:31:01Z" comment="">
        <param>284</param>
      </item>
      <item logid="9771" pageid="0" ns="2" title="User:DonnellConway16" type="newusers" action="create" user="DonnellConway16" timestamp="2015-03-20T13:20:02Z" comment="">
        <param>283</param>
      </item>
    </logevents>
  </query>
  <query-continue>
    <logevents lestart="2015-03-20T09:26:53Z" />
  </query-continue>
</api>