Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7196 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60652 invoked by uid 1010); 20 Jan 2004 05:29:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 60603 invoked from network); 20 Jan 2004 05:29:08 -0000 Received: from unknown (HELO localhost.localdomain) (216.179.74.133) by pb1.pair.com with SMTP; 20 Jan 2004 05:29:08 -0000 Received: by localhost.localdomain (Postfix, from userid 1000) id 292684EBCA; Tue, 20 Jan 2004 06:28:34 +0100 (CET) Date: Tue, 20 Jan 2004 00:28:34 -0500 To: Adam Maccabee Trachtenberg Cc: internals@lists.php.net Message-ID: <20040120052834.GC7324@bumblebury.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1+cvs20040105i Subject: Re: [PHP-DEV] PATCH: SimpleXML asXML() From: sterling@php.net (Sterling Hughes) Change committed - thanks. -Sterling > SimpleXML's asXML() method always returns the entire document > regardless of the node. I believe (Sterling?) we decided the correct > behavior here is to only return the XML data for the current node and > its children. > > A patch to fix the behavior is available here: > > http://www.trachtenberg.com/patches/simplexml_asXML_patch.txt > > Note that with this patch, calling asXML() on an attribute will return > just the attribute and its value, not the element where the attribute > is located. For example: foo="bar" instead of . I > think this makes sense, but it's probably easy to change. > > -adam > > -- > adam@trachtenberg.com > author of o'reilly's php cookbook > avoid the holiday rush, buy your copy today! > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -- "Reductionists like to take things apart. The rest of us are just trying to get it together." - Larry Wall, Programming Perl, 3rd Edition