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>
    <gadgets>
      <gadget id="Use_MediaWiki_Search" desc="Use MediaWiki Search Engine" />
      <gadget id="Loader_Test" desc="Loader Test" />
      <gadget id="Beta_Features" desc="Enable Beta Features" />
    </gadgets>
  </query>
</api>