[development] trouble destructing xml

Scott Reynen scott at makedatamakesense.com
Fri Mar 25 03:13:52 UTC 2011


On 3/24/11 7:09 PM, jeff at ayendesigns.com wrote:
> When I use dsm() on the results, for example, in the case of the object
> with simplexml I get only one 'that' and do not get its contents.

It looka like you've already found the XML data you're looking for, but 
it might be useful for future reference to know that SimpleXML doesn't 
play well with object inspection such as dsm():

http://www.php.net/manual/en/simplexmlelement.children.php

"Note: SimpleXML has made a rule of adding iterative properties to most 
methods. They cannot be viewed using var_dump() or anything else which 
can examine objects."

So the data was in your SimpleXML; you just couldn't see it with dsm().

-- 
Scott Reynen
MakeDataMakeSense.com


More information about the development mailing list