Re: Copying HTML from a document to another document
| From: | Sam Hobbs | Date: | Mon, 20 Sep 2004 03:58:56 +0000 |
| Subject: | Re: Copying HTML from a document to another document | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-12911@lists.php.net to get a copy of this message | ||
"Adam Maccabee Trachtenberg" <adam@trachtenberg.com> wrote in message
news:Pine.LNX.4.58.0409191856080.16894@miranda.org...
>
> foreach ($ContentsDocument->childNodes as $Node) {
> $n = $Document->importNode($Node, true);
> $Cell->appendChild($n);
> }
Wow! Wonderful! That sure seems to work. That seems to be all I needed. I
sure don't understand why I was not able to get that to work; I am sure I
tried it, but perhaps I made a mistake that I overlooked. It sure is easy
enough; I should have figured it out myself.
Again, I really don't know why I did not figure it out myself.
I am sorry for all the trouble.