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>
    <allpages gapcontinue="T.B._39_Class_Torpedo_Boat_(1882)" />
  </query-continue>
  <query>
    <pages>
      <page pageid="30071" ns="0" title="T.B. 109 Class Torpedo Boat (1902)" contentmodel="wikitext" pagelanguage="en" touched="2022-11-02T16:22:33Z" lastrevid="294733" counter="2427" length="4074" />
      <page pageid="30072" ns="0" title="T.B. 114 Class Torpedo Boat (1903)" contentmodel="wikitext" pagelanguage="en" touched="2022-11-02T16:22:38Z" lastrevid="294735" counter="2879" length="2747" />
      <page pageid="9774" ns="0" title="T.B. 1 Class Torpedo Boat (1876)" contentmodel="wikitext" pagelanguage="en" touched="2022-11-02T16:22:30Z" lastrevid="268086" counter="10211" length="9684" />
      <page pageid="9849" ns="0" title="T.B. 1 Class Torpedo Boat (1883)" contentmodel="wikitext" pagelanguage="en" touched="2022-11-02T16:22:31Z" lastrevid="264174" counter="5942" length="3238" />
    </pages>
  </query>
</api>