I am using simple_xml_loader to parse xml document.
I then use xpath to specify the root tag from which I want to print its children nodes.
$xml=simplexml_load_file('url') or die("Error: Cannot create object");
$result = $xml->xpath('//category');
foreach ($result as $node){
print $result;
}
Now I have problems printing the content of an element (i.e. ![CDATA[Refrigerators]). It is not get printed.
How do I fix it?