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="BB-8" />
  </query-continue>
  <query>
    <allpages>
      <p pageid="9398" ns="0" title="B-4711" />
      <p pageid="11053" ns="0" title="B1シリーズ・ワーカー・ドロイド" />
      <p pageid="1099" ns="0" title="B1バトル・ドロイド" />
      <p pageid="7603" ns="0" title="B2-HAシリーズ・スーパー・バトル・ドロイド" />
      <p pageid="9407" ns="0" title="B2-RPバトル・ドロイド" />
      <p pageid="1100" ns="0" title="B2スーパー・バトル・ドロイド" />
      <p pageid="9921" ns="0" title="B2スーパー・バトル・ドロイド・コマンダー" />
      <p pageid="4010" ns="0" title="BARCスピーダー" />
      <p pageid="10687" ns="0" title="BARCスピーダー・バイク" />
      <p pageid="10686" ns="0" title="BARCトルーパー" />
    </allpages>
  </query>
</api>