DPM simpleXMLElement returns just the object but echo returns its value
The issue was that dpm was not printing some of the SimpleXMLElement values. They were only visible from the var_dump after die. Maybe there is a better way to check these. What I noticed was the value was being generated but dpm was not showing it and var_dump did.