<RESULTS>
<ROW>
<COLUMN NAME="ID"><![CDATA[001]]></COLUMN>
<COLUMN NAME="NAME"><![CDATA[ORG001]]></COLUMN>
<COLUMN NAME="CODE"><![CDATA[1234]]></COLUMN>
</ROW>
</RESULTS>
Using simplexml / xpath i would like to return the attribute text for 'NAME' and 'CODE' for ID 001, there is many rows so the result would be different based on id number
Edit: accessing the CDATA isn't the problem here, it is returning the values of name and code where id = 001 etc
heres what i tried to get the name
echo (string)$xml->xpath('/RESULT/ROW/COLUMN[@ID] = ["001"]/COLUMN[@Name="NAME"]');
Thanks