Re: Simplexml and xml namespaces
| From: | Rob Richards | Date: | Fri, 19 Aug 2005 19:34:54 +0000 |
| Subject: | Re: Simplexml and xml namespaces | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-18229@lists.php.net to get a copy of this message | ||
There isn't a single method in DOM for this - have to write code to do it. get_properties was not implemented in DOM due to too many properties and many properties recursive (DOM both ascends and descends a tree). Any debugging would be useless trying to sort through all the crap. I, like Adam, also use those methods when I need to examine a subtree.
Rob
Adam Maccabee Trachtenberg wrote:
On Fri, 19 Aug 2005, Sterling Hughes wrote:I agree. var_dump() should accurately expose the structure of the simplexml object, if people want to see *everything* they should dump it explicitly (there is a method in the DOM api to do this?)You mean other than reserializing the data back as XML? :) All kidding aside, I do use SXE's asXML() and DOM's saveXML() for debugging in these types of cases.