<description>
<![CDATA[
Stunning Lucchese villa built in 1705 with many historical associations, set in a formal parkland plus a further 28 hectares of
]]>
</description>
[description] => SimpleXMLElement Object
'description' =>
array (size=0)
empty
trim($xml->description)
или любой другой способ приведения его к строке. <![CDATA[Aghia Paraskevi, Skiatos, Greece]]>
$doc = new DOMDocument();
$doc->load('test.xml');
$destinations = $doc->getElementsByTagName("Destination");
foreach ($destinations as $destination) {
foreach($destination->childNodes as $child) {
if ($child->nodeType == XML_CDATA_SECTION_NODE) {
echo $child->textContent . "<br/>";
}
}
}