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="7" pages="7" files="0" subcats="0" xml:space="preserve">Аспиранты</c>
      <c size="28" pages="28" files="0" subcats="0" xml:space="preserve">Аудитории</c>
      <c size="0" pages="0" files="0" subcats="0" xml:space="preserve">Аудитории:НИЛ</c>
      <c size="0" pages="0" files="0" subcats="0" xml:space="preserve">Ветераны</c>
      <c size="19" pages="19" files="0" subcats="0" xml:space="preserve">Ветераны и сотрудники</c>
      <c size="0" pages="0" files="0" subcats="0" xml:space="preserve">Википедия:Шаблоны:Железнодорожный транспорт</c>
      <c size="56" pages="56" files="0" subcats="0" xml:space="preserve">Все сотрудники</c>
      <c size="4" pages="4" files="0" subcats="0" xml:space="preserve">ГОС2:Учебные планы</c>
      <c size="7" pages="6" files="0" subcats="1" xml:space="preserve">ГОС3</c>
      <c size="19" pages="19" files="0" subcats="0" xml:space="preserve">Дисциплины</c>
    </allcategories>
  </query>
</api>