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="Between_Dark_and_Dawn|40" />
</query-continue>
<query>
<pages>
<page pageid="1" ns="0" title="Main Page" />
<page pageid="31" ns="0" title="BerryTube First Time Visitors Guide" />
<page pageid="40" ns="0" title="Episode statistics" />
<page pageid="242" ns="14" title="Category:Fluttershy episode" />
<page pageid="249" ns="14" title="Category:Pinkie Pie episode" />
<page pageid="264" ns="0" title="Rules and Totals" />
<page pageid="265" ns="0" title="Rules" />
</pages>
</query>
</api>