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="18th_century" />
  </query-continue>
  <query>
    <allcategories>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">01 Eastern Roman Empire Alliance</c>
      <c size="1" pages="0" files="0" subcats="1" xml:space="preserve">10th century</c>
      <c size="1" pages="0" files="0" subcats="1" xml:space="preserve">10th century BC</c>
      <c size="2" pages="1" files="0" subcats="1" xml:space="preserve">11th century</c>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">12th century</c>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">13th century</c>
      <c size="3" pages="2" files="0" subcats="1" xml:space="preserve">14th century</c>
      <c size="3" pages="2" files="0" subcats="1" xml:space="preserve">15th century</c>
      <c size="3" pages="2" files="0" subcats="1" xml:space="preserve">16th century</c>
      <c size="2" pages="1" files="0" subcats="1" xml:space="preserve">17th century</c>
    </allcategories>
  </query>
</api>