I'm trying to obtain the values of the nodes "/entry/comment[type="subcellular location"]/subcellularLocation/location" from this file http://www.uniprot.org/uniprot/P12345.xml
I'm using SimpleXML and xpath but I can't access to this nodes with:
$var = "http://www.uniprot.org/uniprot/P12345.xml";
$Unip_result= new SimpleXMLElement($var, NULL, TRUE);
$value=$Unip_result->xpath("/entry/comment[@type='subcellular location']");
The result is an empty array...