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="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="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="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="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="0" pages="0" files="0" subcats="0" xml:space="preserve">-лейб-гвардии пехота</c>
      <c size="0" pages="0" files="0" subcats="0" xml:space="preserve">-лейб-гвардия</c>
    </allcategories>
  </query>
</api>