title: phpunit testing xml output
body: <p>I have written an API which gets data from another API and converts it into XML. How do I use phpunit to test that the output is the expected XML and is valid?</p>
  
  <p>Should I create a sample xml with all the nodes and then check the output against it?</p>