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>
    <pages>
      <page pageid="6" ns="0" title="SMS Alarm/IO unit Building">
        <revisions>
          <rev xml:space="preserve">SMS Alarm building

[mailto:kimfmx@gmail.com Email me]</rev>
        </revisions>
      </page>
    </pages>
  </query>
</api>