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="Partitions" />
  </query-continue>
  <query>
    <allpages>
      <p pageid="10" ns="0" title="Basic Commands" />
      <p pageid="2" ns="0" title="Inside an OFED distribution" />
      <p pageid="11" ns="0" title="Learning Infiniband" />
      <p pageid="1" ns="0" title="Main Page" />
      <p pageid="4" ns="0" title="OSM ErrorMsg" />
      <p pageid="5" ns="0" title="OSM PML" />
      <p pageid="6" ns="0" title="OSM PerfManager" />
      <p pageid="3" ns="0" title="OpenSM Logging" />
      <p pageid="7" ns="0" title="OpenStack" />
      <p pageid="9" ns="0" title="Overview of Error Counters" />
    </allpages>
  </query>
</api>