After reading your reply I removed the xml declaration and noticed no difference. I then removed the doctype declaration and it worked. This however does not seem like a good think to do, however I am not sure.
What are the advantages and disadvantages of having a doctype? I know most but if someone could restate them I would appreciate it.