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="1930_год_в_Казахстане" />
  </query-continue>
  <query>
    <allcategories>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">1216 год</c>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">1217 год</c>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">1218 год</c>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">1810 год в Казахстане</c>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">1850-е годы</c>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">1860-е годы</c>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">1870 год</c>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">18 августа</c>
      <c size="3" pages="3" files="0" subcats="0" xml:space="preserve">1919 год в России</c>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">1920 год в России</c>
    </allcategories>
  </query>
</api>