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="1" ns="0" title="Main Page" touched="2018-11-16T01:47:16Z" lastrevid="5940" counter="7745249" length="4070" />
</pages>
</query>
</api>