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>
    <allimages gaicontinue="Thunderbolt-interface-MacBook.png" />
  </query-continue>
  <query>
    <pages>
      <page pageid="678" ns="6" title="File:Taking a screenshot on samsung GALAXY Grand 2.png" imagerepository="local">
        <imageinfo>
          <ii timestamp="2014-08-24T12:35:32Z" user="Add" />
        </imageinfo>
      </page>
      <page pageid="40" ns="6" title="File:Task Bar Firefox Shortcut Unpin.png" imagerepository="local">
        <imageinfo>
          <ii timestamp="2014-02-09T16:57:45Z" user="Solver" />
        </imageinfo>
      </page>
      <page pageid="46" ns="6" title="File:Task Bar Google Chrome Shortcut Unpin.png" imagerepository="local">
        <imageinfo>
          <ii timestamp="2014-02-09T22:57:04Z" user="Solver" />
        </imageinfo>
      </page>
      <page pageid="2017" ns="6" title="File:Telephone Receiver.png" imagerepository="local">
        <imageinfo>
          <ii timestamp="2014-12-11T14:37:49Z" user="GoldeBoy" />
        </imageinfo>
      </page>
    </pages>
  </query>
</api>