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>
    <pages>
      <page pageid="201" ns="0" title="Current events on the Severn Valley Railway" contentmodel="wikitext" pagelanguage="en-gb" touched="2017-06-09T16:41:32Z" lastrevid="13182" counter="17279" length="3746" />
      <page pageid="1077" ns="0" title="Gradient profile and mileages" contentmodel="wikitext" pagelanguage="en-gb" touched="2017-02-21T17:07:50Z" lastrevid="11649" counter="6524" length="9340" />
      <page pageid="474" ns="0" title="Severn Valley Railway News" contentmodel="wikitext" pagelanguage="en-gb" touched="2017-06-12T17:08:16Z" lastrevid="13233" counter="2077" length="713" />
      <page pageid="112" ns="0" title="Tenbury Branch" contentmodel="wikitext" pagelanguage="en-gb" touched="2015-11-12T19:42:18Z" lastrevid="2592" counter="1960" length="962" />
    </pages>
  </query>
</api>