PHP – echo not working

I am having a problem with some php. I can get my results to print but I can’t echo a specific section of the xml. This is the code I am using:

I have removed the cdata headings. However, When I try to return [propertyname] it returns nothing.