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="Beliefs" />
  </query-continue>
  <query>
    <allpages>
      <p pageid="2371" ns="0" title="B. Why are agricultural villages more vulnerable--and inviting-- to attack than villages of hunter-gatherers?" />
      <p pageid="1450" ns="0" title="BAsis of Society Mencius" />
      <p pageid="53" ns="0" title="BaBar Lab Answers" />
      <p pageid="1237" ns="0" title="Baal" />
      <p pageid="1721" ns="0" title="Back to History Archaeology Notes" />
      <p pageid="1105" ns="0" title="Basic Tenets" />
      <p pageid="1297" ns="0" title="Basis of Society Confucius" />
      <p pageid="1298" ns="0" title="Basis of Society Legalism" />
      <p pageid="1454" ns="0" title="Basis of Society Mencius" />
      <p pageid="1304" ns="0" title="Basis of Society Taoism" />
    </allpages>
  </query>
</api>