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="Archive" />
  </query-continue>
  <query>
    <allcategories>
      <c size="133" pages="130" files="0" subcats="3" xml:space="preserve">Abilities</c>
      <c size="31" pages="31" files="0" subcats="0" xml:space="preserve">Actors Who Portray Multiple Characters</c>
      <c size="24" pages="24" files="0" subcats="0" xml:space="preserve">Actors Who Portray Young Versions of Characters</c>
      <c size="0" pages="0" files="0" subcats="0" xml:space="preserve">Actors Who Portrays Multiple Characters</c>
      <c size="20" pages="0" files="20" subcats="0" xml:space="preserve">Animal Portraits</c>
      <c size="4" pages="4" files="0" subcats="0" xml:space="preserve">Animal actors</c>
      <c size="28" pages="28" files="0" subcats="0" xml:space="preserve">Animals</c>
      <c size="77" pages="0" files="77" subcats="0" xml:space="preserve">Animations</c>
      <c size="24" pages="24" files="0" subcats="0" xml:space="preserve">Apartments</c>
      <c size="374" pages="374" files="0" subcats="0" xml:space="preserve">Appearances Templates</c>
    </allcategories>
  </query>
</api>