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"?>
      <gadget id="ReferenceTooltips" desc="&lt;a href=&quot;; class=&quot;extiw&quot; title=&quot;mw:Reference Tooltips&quot;&gt;Reference Tooltips&lt;/a&gt;: Roll over any inline citation to see reference information, instead of having to jump away from the article text.">
          <settings default="" category="">
            <rights />
            <skins />
            <dependencies />
            <messages />