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>
    <linkshere lhcontinue="5869" />
  </query-continue>
  <query>
    <pages>
      <page pageid="1" ns="0" title="Main Page">
        <linkshere>
          <lh pageid="1367" ns="12" title="Help:Contents" />
          <lh pageid="1369" ns="4" title="BrewWiki:Site support" />
          <lh pageid="1377" ns="2" title="User:BrewWiki" />
          <lh pageid="1379" ns="4" title="BrewWiki:General disclaimer" />
          <lh pageid="1420" ns="4" title="BrewWiki:Copyrights" />
          <lh pageid="1422" ns="14" title="Category:Portals" />
          <lh pageid="1444" ns="4" title="BrewWiki:Administrators" />
          <lh pageid="1449" ns="0" title="Donation Thanks" />
          <lh pageid="1450" ns="10" title="Template:Locked" />
          <lh pageid="1452" ns="4" title="BrewWiki:Protected page guidelines" />
        </linkshere>
      </page>
    </pages>
  </query>
</api>