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>
    <alllinks alcontinue="Beaufort_West_Museum|1852" />
  </query-continue>
  <query>
    <alllinks>
      <l fromid="1463" ns="0" title="Baltimore Museum of Art" />
      <l fromid="1472" ns="0" title="Baltimore Museum of Art" />
      <l fromid="1642" ns="0" title="Baltimore Museum of Art" />
      <l fromid="1643" ns="0" title="Baltimore Museum of Art" />
      <l fromid="1641" ns="0" title="Bangladesh National Museum" />
      <l fromid="1947" ns="0" title="Bankfield Museum" />
      <l fromid="1389" ns="0" title="Beamish Museum" />
      <l fromid="1472" ns="0" title="Beamish Museum" />
      <l fromid="1706" ns="0" title="Beamish Museum" />
      <l fromid="1947" ns="0" title="Beamish Museum" />
    </alllinks>
  </query>
</api>