PHP Source:
<
!DOCTYPE
html
>
<
html
>
<
body
>
<?php
$note=<<<XML
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don
't forget me this weekend!</body>
</note>
XML;
$xml=simplexml_load_string($note);
print_r($xml);
?>
<
/body
>
<
/html
>
Result: