If you read through the links above, all the information is there, but to put it simply you have the following choices;
* in xara, change names of pages to end with .php (this can work for all pages except the first one which could just be a dummy page)
* make changes to your .htaccess file so that the .htm files get processed by php
As you probably realise, changing filenames afterwards is futile and internal links won't work anyway.
You wouldn't need all that HTML, as that would already be generated by xara, assuming you are inserting this code in a html placeholder it would already be in the body section
Edit - oops, didn't see there was a page 2 already!
Bookmarks