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="5" ns="2" title="User:Priya" pageid="0" logpage="0" userid="4" type="newusers" action="create" user="Priya" timestamp="2016-09-30T23:10:48Z" comment="" />
      <item logid="4" ns="0" title="Lakeview" pageid="26" logpage="0" type="delete" action="delete" user="Admin" timestamp="2010-06-10T01:47:52Z" comment="content was: &#039;test&#039; (and the only contributor was &#039;[[Special:Contributions/DorkGently|DorkGently]]&#039;)" />
      <item logid="3" ns="0" title="Spicy Fish" pageid="13" logpage="0" type="move" action="move" user="DorkGently" timestamp="2007-12-04T14:20:08Z" comment="">
        <move new_ns="0" new_title="Spicy Fish Soup" />
      </item>
      <item logid="2" ns="0" title="Recipies" pageid="6" logpage="0" type="move" action="move" user="DorkGently" timestamp="2007-12-03T22:42:27Z" comment="">
        <move new_ns="0" new_title="Recipes" />
      </item>
      <item logid="1" ns="0" title="MyRecipies" pageid="3" logpage="0" type="move" action="move" user="DorkGently" timestamp="2007-12-03T22:17:23Z" comment="">
        <move new_ns="0" new_title="Recipies" />
      </item>
    </logevents>
  </query>
</api>