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>
    <alllinks galcontinue="Bahrain|7818" />
  </query-continue>
  <query>
    <pages>
      <page pageid="12" ns="14" title="Category:International Adoption by Country" />
      <page pageid="168" ns="0" title="Adopting from Bahrain" />
      <page pageid="1145" ns="0" title="Pregnancy" />
      <page pageid="5793" ns="0" title="Postpartum Care" />
      <page pageid="6728" ns="0" title="How to Adopt from Bahamas, The" />
      <page pageid="6750" ns="0" title="About Bahrain" />
      <page pageid="6751" ns="0" title="Bahrain and the Hague Convention" />
      <page pageid="7671" ns="0" title="Who Can Be Adopted from Moldova" />
      <page pageid="8068" ns="0" title="Who Can Adopt from Ukraine" />
    </pages>
  </query>
</api>