$xmlString = "<canine>who let the dogs out?</canine>";
When this information is fed to the browser, it displays the output "Who Let the Dogs out?" correctly. It displayed data because the root element has no nested elements inside of it. If we store an XML document instead that consists of nested elements, it doesn't make sense to display the contents of the root element on the browser. It's not a simple string any more. So it simply displays a blank page, with NO content.
$xmlString = "<canine>
<question>Who Let the dogs out?</question>
<answer>It's a dog's life!</answer>
Have a question but don't want to ask it publicly? If you are a prime member just ask right here and we will get back to you within 48 hours. Not prime yet? no worries you can ask publicly below.