[eluser]Colin Williams[/eluser]
Code:
$this->load->view('sample/samplexmldoc.xml', $data);
I believe that will do ;-P Since you are passing $data, I assume, for some reason, you've told your server to run .xml files through the PHP parser. Odd, but whatever.