Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12910 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41951 invoked by uid 1010); 19 Sep 2004 23:00:56 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 41927 invoked from network); 19 Sep 2004 23:00:56 -0000 Received: from unknown (HELO miranda.org) (209.58.150.153) by pb1.pair.com with SMTP; 19 Sep 2004 23:00:56 -0000 Received: (qmail 22564 invoked by uid 546); 19 Sep 2004 23:00:56 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 19 Sep 2004 23:00:56 -0000 Date: Sun, 19 Sep 2004 19:00:56 -0400 (EDT) X-X-Sender: adam@miranda.org To: Sam Hobbs cc: internals@lists.php.net In-Reply-To: <20040919212958.63036.qmail@pb1.pair.com> Message-ID: References: <20040919183045.63473.qmail@pb1.pair.com> <414DD1DD.80205@bitflux.ch> <20040919193821.25574.qmail@pb1.pair.com> <414DF200.30409@bitflux.ch> <20040919212958.63036.qmail@pb1.pair.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Copying HTML from a document to another document From: adam@trachtenberg.com (Adam Maccabee Trachtenberg) On Sun, 19 Sep 2004, Sam Hobbs wrote: > I think it is reasonable to ask for the one or two lines of PHP code that > solves the problem. As I have said, I did try to do it myself. foreach ($ContentsDocument->childNodes as $Node) { $n = $Document->importNode($Node, true); $Cell->appendChild($n); } -adam -- adam@trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today!