You can't build a theme entirely in an XML file because WordPress uses its templates files, such as index.php and single.php, to render the page.
Here is a good overview of the template hierarchy: http://codex.wordpress.org/Template_Hierarchy
Additionally, you can certainly provide WordPress sample data through an XML file.