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 apcontinue="Barta_Basin" />
  </query-continue>
  <query>
    <allpages>
      <p pageid="2203" ns="0" title="Baglihar Hydroelectric Plant - Issue between Pakistan and India" />
      <p pageid="2313" ns="0" title="Baglihar Hydroelectric Plant - Issue between Pakistan and India + Case Study of Transboundary Dispute Resolution: Multilateral Working Group on Water Resources (Middle East)" />
      <p pageid="1981" ns="0" title="BahuKalat-Rudkhanehye Basin" />
      <p pageid="1857" ns="0" title="Baker Basin" />
      <p pageid="1346" ns="0" title="Balancing Industries and Sectors" />
      <p pageid="1927" ns="0" title="Bangau Basin" />
      <p pageid="1740" ns="0" title="Bangladesh" />
      <p pageid="1856" ns="0" title="Bann Basin" />
      <p pageid="2040" ns="0" title="Baraka Basin" />
      <p pageid="2019" ns="0" title="Barima Basin" />
    </allpages>
  </query>
</api>