Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18320 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57049 invoked by uid 1010); 23 Aug 2005 20:00:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 57032 invoked from network); 23 Aug 2005 20:00:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Aug 2005 20:00:50 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:44247] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 7F/F5-28235-2708B034 for ; Tue, 23 Aug 2005 16:00:50 -0400 Received: from [192.168.1.3] (dsl-082-083-225-233.arcor-ip.net [82.83.225.233]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 79E1D35C381; Tue, 23 Aug 2005 22:21:15 +0200 (CEST) Date: Tue, 23 Aug 2005 21:58:44 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1042716443.20050823215844@marcus-boerger.de> To: Rob Richards Cc: Adam Maccabee Trachtenberg , sterling@apache.org, Rasmus Lerdorf , In-Reply-To: <4306345E.5070500@ctindustries.net> References: <43054765.3000208@lerdorf.com> <430593FF.6020907@lerdorf.com> <4305F81A.5090606@ctindustries.net> <24e5f3b705081912045e18fea2@mail.gmail.com> <4306345E.5070500@ctindustries.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Simplexml and xml namespaces From: helly@php.net (Marcus Boerger) Hello Rob, what we need here is a temp hash table to store the names. var_dump would grep them through get_properties... Friday, August 19, 2005, 9:34:54 PM, you wrote: > 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. >> >> Best regards, Marcus