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="3" ns="0" title="Bypassing Items" pageid="19" type="move" action="move" user="Jerry9" timestamp="2007-09-02T16:31:45Z" comment="Skipped items can be found under the Sequence Breaks section.  This page lists barriers to skipping items.">
        <move new_ns="0" new_title="Obstacles to Bypassing Items" />
      </item>
      <item logid="2" ns="0" title="Main Page" pageid="1" type="patrol" action="patrol" user="Njahnke" timestamp="2007-08-23T04:26:53Z" comment="">
        <patrol cur="27" prev="6" auto="1" />
      </item>
      <item logid="1" ns="0" title="Obstacles to Skipping Items" pageid="0" type="delete" action="delete" user="Njahnke" timestamp="2007-08-18T22:19:38Z" comment="content was: &#039;GO HERE FOR INFORMATION: [[Bypassing Items]]&#039; (and the only contributor was &#039;[[Special:Contributions/Prime Hunter|Prime Hunter]]&#039;)" />
    </logevents>
  </query>
</api>