Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22120 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91144 invoked by uid 1010); 5 Mar 2006 14:32:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 91129 invoked from network); 5 Mar 2006 14:32:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Mar 2006 14:32:38 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:55718] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id A8/39-22029-586FA044 for ; Sun, 05 Mar 2006 09:32:37 -0500 Received: from [192.168.1.3] (dslb-084-063-027-114.pools.arcor-ip.net [84.63.27.114]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 6EADD35C1BD; Sun, 5 Mar 2006 15:32:33 +0100 (CET) Date: Sun, 5 Mar 2006 15:32:39 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <685963607.20060305153239@marcus-boerger.de> To: Rob Richards Cc: "internals@lists.php.net" In-Reply-To: <440AF5B1.5040607@ctindustries.net> References: <440AF5B1.5040607@ctindustries.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] new simplexml functionality From: helly@php.net (Marcus Boerger) Hello Rob, Sunday, March 5, 2006, 3:29:05 PM, you wrote: > I would like to propose adding addChild and addAtribute methods to > simplexml. I know these have been shot down in the past, but with > Marcus' recent changes to simplexml, they now make sense imo. It is important to note that we shot down those in the past because we hadn't had the support by the generic handlers either. Just becuase they weren't working as expected and nobody was willing to do it and partly becuase we believed it impossible. Though now i fixed all issues it makes sense. What still stands is that originally - in its first days - the goal of SimpleXML was to not have any function at all. But that was before we discoverd that this design does not allow to handle namespaces at all and leaded to unexpected behavior when SXE was used ofr documents that contained namespaces. > SimpleXMLElement::addChild(string qName, string value [,string ns]) > SimpleXMLElement::addAttribute(string qName, string value [,string ns]) > http://www.ctindustries.net/patches/sxe.diff.txt The patch looks good. > To the argument that DOM could just be used to provide the > functionality, the same cause could be made for the getName, > getNamespaces and getDocNamespaces methods as well and these new > functions are much more useful imo. I hate DOM for its endless complexity and very much dislike having to switch between the two. Best regards, Marcus