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="20190812031913|15636" />
  </query-continue>
  <query>
    <logevents>
      <item logid="15649" ns="0" title="Pdf-2" pageid="2456" type="pdf" action="book" user="64.62.252.174" anon="" timestamp="2019-10-06T23:20:52Z" comment="User:64.62.252.174 exported as a PDF book" />
      <item logid="15648" ns="0" title="Pdf" pageid="2497" type="pdf" action="book" user="64.62.252.174" anon="" timestamp="2019-10-06T23:19:11Z" comment="User:64.62.252.174 exported as a PDF book" />
      <item logid="15647" ns="0" title="Pdf" pageid="2497" type="pdf" action="book" user="84.242.83.180" anon="" timestamp="2019-09-16T16:21:37Z" comment="User:84.242.83.180 exported as a PDF book" />
      <item logid="15646" ns="0" title="Pdf" pageid="2497" type="pdf" action="book" user="84.242.83.180" anon="" timestamp="2019-09-16T16:18:51Z" comment="User:84.242.83.180 exported as a PDF book" />
      <item logid="15645" ns="0" title="Pdf-2" pageid="2456" type="pdf" action="book" user="64.62.252.176" anon="" timestamp="2019-09-07T11:15:30Z" comment="User:64.62.252.176 exported as a PDF book" />
      <item logid="15644" ns="0" title="Pdf" pageid="2497" type="pdf" action="book" user="64.62.252.176" anon="" timestamp="2019-09-07T11:13:47Z" comment="User:64.62.252.176 exported as a PDF book" />
      <item logid="15643" ns="0" title="Pdf" pageid="2497" type="pdf" action="book" user="40.77.167.92" anon="" timestamp="2019-08-25T12:36:50Z" comment="User:40.77.167.92 exported as a PDF book" />
      <item logid="15642" ns="0" title="Pdf-2" pageid="2456" type="pdf" action="book" user="66.160.140.184" anon="" timestamp="2019-08-17T22:28:55Z" comment="User:66.160.140.184 exported as a PDF book" />
      <item logid="15641" ns="0" title="Pdf" pageid="2497" type="pdf" action="book" user="66.160.140.184" anon="" timestamp="2019-08-17T22:27:08Z" comment="User:66.160.140.184 exported as a PDF book" />
      <item logid="15637" ns="0" title="Pdf" pageid="2497" type="pdf" action="book" user="110.52.235.38" anon="" timestamp="2019-08-12T03:20:09Z" comment="User:110.52.235.38 exported as a PDF book" />
    </logevents>
  </query>
</api>