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>
    <allcategories accontinue="Armor" />
  </query-continue>
  <query>
    <allcategories>
      <c size="5" pages="5" files="0" subcats="0" xml:space="preserve">Absorb Potions</c>
      <c size="42" pages="42" files="0" subcats="0" xml:space="preserve">Adept Learner Potions</c>
      <c size="3" pages="3" files="0" subcats="0" xml:space="preserve">Ageless Potions</c>
      <c size="0" pages="0" files="0" subcats="0" xml:space="preserve">Allied Frenzy Potions</c>
      <c size="1143" pages="1143" files="0" subcats="0" xml:space="preserve">Amulets</c>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">Anchored Potions</c>
      <c size="33" pages="33" files="0" subcats="0" xml:space="preserve">Animal Magnetism Potions</c>
      <c size="4" pages="4" files="0" subcats="0" xml:space="preserve">Anti Deflect Potions</c>
      <c size="116" pages="116" files="0" subcats="0" xml:space="preserve">Aquatic Class</c>
      <c size="1876" pages="1876" files="0" subcats="0" xml:space="preserve">Areas</c>
    </allcategories>
  </query>
</api>