Thank you that seems to fix the error, however, I can't seem to get the browser to recognise the output as XML, it just displays plain text.
I've put header("content-type: text/xml"); in there but it's still not recognising it.
does it have something to do with the filename extension?
(sorry if these are stupid questions).
A