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="BerryTube_My_Little_Pony_Drinking_Game_Rules" />
  </query-continue>
  <query>
    <allpages>
      <p pageid="586" ns="0" title="BABSCON party room playbook" />
      <p pageid="185" ns="0" title="Baby Cakes" />
      <p pageid="437" ns="0" title="Banana Facts" />
      <p pageid="417" ns="0" title="Banned Videos" />
      <p pageid="215" ns="0" title="Bats!" />
      <p pageid="351" ns="0" title="Bench" />
      <p pageid="312" ns="0" title="BerryRO" />
      <p pageid="452" ns="0" title="BerryTube Cup 2016" />
      <p pageid="15" ns="0" title="BerryTube First Time Visitor&#039;s Guide" />
      <p pageid="31" ns="0" title="BerryTube First Time Visitors Guide" />
    </allpages>
  </query>
</api>