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="Copeland_Cultural_Quarter" />
  </query-continue>
  <query>
    <allcategories>
      <c size="1" pages="0" files="0" subcats="1" xml:space="preserve">Archive</c>
      <c size="2" pages="0" files="2" subcats="0" xml:space="preserve">Archived depot plans</c>
      <c size="12" pages="0" files="12" subcats="0" xml:space="preserve">Archived maps and plans</c>
      <c size="3" pages="1" files="2" subcats="0" xml:space="preserve">Archived tram depot</c>
      <c size="1" pages="1" files="0" subcats="0" xml:space="preserve">Archives</c>
      <c size="21" pages="1" files="20" subcats="0" xml:space="preserve">Artists</c>
      <c size="4" pages="2" files="2" subcats="0" xml:space="preserve">BRG Planning Policy</c>
      <c size="4" pages="1" files="3" subcats="0" xml:space="preserve">Bellenden Residents Group</c>
      <c size="17" pages="2" files="15" subcats="0" xml:space="preserve">Bussey Building</c>
      <c size="8" pages="1" files="6" subcats="1" xml:space="preserve">CLF Weekender</c>
    </allcategories>
  </query>
</api>