PHP echo everything including brackets and quotes

How can I print exactly what I want in between my quotes? I have xml that I want to echo exactly and it is not printing out the brackets and gets hung up at the "<?" and all that. Is there a way I can just say echo exactly between these quotes?

Can you post a sample of code that shows the issue?

I fixed the issue by putting that it was an xml file in the header and was able to write it out into the xml file perfectly.