You are looking at the HTML representation of the XML format.
HTML is good for debugging, but probably is not suitable for your application.
See complete documentation, or API help for more information.
<?xml version="1.0"?>
<api>
  <query>
    <random>
      <page id="146" ns="0" title="Reichstagswahl 1932-11-06 (Weißenfels)" />
      <page id="248" ns="0" title="Der Burghügel bei Teuchern" />
    </random>
  </query>
</api>