- simplexml_load_string: documentation ( source)
<?php
$xml='<?xml version="1.0" encoding="UTF-8" ?>';
$xml.='<Test>
<Item>
<Price>0.53</Price>
<Text>This is some test text. We need to see how it does.<br>
This is a second line of text.</Text>
</Item>
</Test>';
$result=simplexml_load_string($xml);
echo $result->Item->Text;