Not sure if that's the actual cause of your problem, but something that might cause it is the standalone="yes"
in your XML declaration.
If your file needs any external file for any reason (including DTDs, schemas... and stylesheets), there should be either nothing or standalone="no"
.