You are looking at the HTML representation of the XML format.
HTML is good for debugging, but probably is not suitable for your application.
See complete documentation, or API help for more information.
<?xml version="1.0"?>
<api>
  <query>
    <pages>
      <page pageid="1" ns="0" title="Main Page">
        <images>
          <im ns="6" title="File:GF 2019 Curran cup and Stone.jpg" />
          <im ns="6" title="File:GF 2019 Motlop 3rd qtr shimmy before checkside goal.jpg" />
          <im ns="6" title="File:Glenelg team premiers 2019.jpg" />
          <im ns="6" title="File:Lachie Neale Brownlow Medal 2020.jpg" />
          <im ns="6" title="File:Lachie Neale on debut for Glenelg.jpg" />
          <im ns="6" title="File:Main Page Collage B&amp;W.jpg" />
          <im ns="6" title="File:Main Page Collage Colour.jpg" />
        </images>
      </page>
    </pages>
  </query>
</api>