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="Крафтинг" />
  </query-continue>
  <query>
    <allcategories>
      <c size="3" pages="3" files="0" subcats="0" xml:space="preserve">АХЧ</c>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">Авторские миры</c>
      <c size="8" pages="8" files="0" subcats="0" xml:space="preserve">ВТВ</c>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">Взлом</c>
      <c size="2" pages="2" files="0" subcats="0" xml:space="preserve">Золотой куб</c>
      <c size="0" pages="0" files="0" subcats="0" xml:space="preserve">Игра</c>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">Игровая криминалистика</c>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">Игровая медицина</c>
      <c size="15" pages="15" files="0" subcats="0" xml:space="preserve">Игры</c>
      <c size="9" pages="9" files="0" subcats="0" xml:space="preserve">Конвенты</c>
    </allcategories>
  </query>
</api>