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 generated="20190701060651">
    <tagsreport>
      <tag page_id="1461" title="Pocket Trains Wiki" name="activityfeed" />
      <tag page_id="1461" title="Pocket Trains Wiki" name="imagemap" />
      <tag page_id="1461" title="Pocket Trains Wiki" name="mainpage" />
      <tag page_id="1461" title="Pocket Trains Wiki" name="poll" />
      <tag page_id="1480" title="Forum:Help desk" name="createbox" />
      <tag page_id="1481" title="Forum:Watercooler" name="createbox" />
      <tag page_id="2119" title="Bluebell Steamer" name="gallery" />
      <tag page_id="2124" title="Template:Train" name="infobox" />
      <tag page_id="2125" title="Cherry Steamer" name="gallery" />
      <tag page_id="2128" title="Emerald Steamer" name="gallery" />
      <tag page_id="2130" title="Vanilla Steamer" name="gallery" />
      <tag page_id="2132" title="Regional Express" name="gallery" />
      <tag page_id="2134" title="National Express" name="gallery" />
      <tag page_id="2136" title="Global Express" name="gallery" />
      <tag page_id="2138" title="Metro Express" name="gallery" />
      <tag page_id="2157" title="Bullet" name="gallery" />
      <tag page_id="2924" title="Template:DYK Random" name="choose" />
      <tag page_id="2966" title="NimbleBit" name="gallery" />
      <tag page_id="3243" title="Template:Statistics" name="infobox" />
      <tag page_id="3244" title="Template:Item" name="infobox" />
    </tagsreport>
  </query>
</api>