title: How to echo an XML string to an HTML page for debugging?
body: <p>Okay so I have a php script and I need to somehow view the value of one of my variables.  The thing is this variable is a very long string of XML that got returned from a server.  I know it has an error message in it but I need to actually see what it is saying.  If I try and Print or echo the value it only displays part followed by a ... or if I use var_dump it does the same.  I've even gone as far as trying to echo a javascript alert with the value but that fails because there are single and double quotes in the xml causing the alert quotes not to be recognized correctly.  I just need to see the value of this variable.  Any advice?  Thanks.</p>
  
  <p>Edit:
  Actually said that wrong.  Echo and print don't display the value correctly because the tags are in &lt;> brackets so it is recognizing as an html tag.</p>