First of all, you should not do these kind of things in your template files. You should do this in your controller and pass the content of note.xml (or whatever you want to do with it) to your view.
But to answer your question. You can't use only a filename when using file methods like this. You should always use absolute paths when working with native file functions.
So for example simplexml_load_file(resource_path('/views/note.xml'));
See https://laravel.com/docs/5.8/helpers#method-resource-path for what resource_path() does, there are more methods similar like this.