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>
    <allcategories>
      <c size="0" pages="0" files="0" subcats="0" xml:space="preserve">' .. cat .. '</c>
      <c size="32" pages="29" files="0" subcats="3" xml:space="preserve">API</c>
      <c size="0" pages="0" files="0" subcats="0" xml:space="preserve">API Command</c>
      <c size="33" pages="33" files="0" subcats="0" xml:space="preserve">API Commands</c>
      <c size="5" pages="0" files="5" subcats="0" xml:space="preserve">API Documentation Icons</c>
      <c size="1" pages="0" files="0" subcats="1" xml:space="preserve">API Icons</c>
      <c size="28" pages="0" files="27" subcats="1" xml:space="preserve">API Images</c>
      <c size="22" pages="22" files="0" subcats="0" xml:space="preserve">API Templates</c>
      <c size="2" pages="0" files="2" subcats="0" xml:space="preserve">Animated GIFs</c>
      <c size="8" pages="8" files="0" subcats="0" xml:space="preserve">Article message templates</c>
    </allcategories>
  </query>
  <query-continue>
    <allcategories accontinue="Article_message_templates_with_missing_parameters" />
  </query-continue>
</api>