Re: [PHP-DEV] Copying HTML from a document to another document

2004-09-19 Thread Sam Hobbs
"Adam Maccabee Trachtenberg" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > 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

Re: [PHP-DEV] Copying HTML from a document to another document

2004-09-19 Thread 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

Re: [PHP-DEV] Copying HTML from a document to another document

2004-09-19 Thread Sam Hobbs
"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Would you please stop asking questions that have nothing to do with > low-level PHP internals on the internals list. You are getting gruff > responses because your posts are completely off-topic to this list. Post > s

Re: [PHP-DEV] Copying HTML from a document to another document

2004-09-19 Thread Sam Hobbs
"Christian Stocker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > http://www.w3.org/TR/DOM-Level-2-Core/core.html#Core-Document-importNode > > explains it all quite good. And it's no guarantee, that it works in php5, > if it works in JS (the JS implementations aren't flawless ;

Re: [PHP-DEV] Copying HTML from a document to another document

2004-09-19 Thread Rasmus Lerdorf
Would you please stop asking questions that have nothing to do with low-level PHP internals on the internals list. You are getting gruff responses because your posts are completely off-topic to this list. Post such questions to php-general. If you don't get a response, coming in here and brow-be

Re: [PHP-DEV] Copying HTML from a document to another document

2004-09-19 Thread Christian Stocker
On 19.9.2004 21:38 Uhr, Sam Hobbs wrote: "Christian Stocker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On 19.9.2004 20:30 Uhr, Sam Hobbs wrote: Please see: Copying HTML from a document to another document http://marc.theaimsgroup.com/?l=php-general&m=109419037409980&w=2 It has

Re: [PHP-DEV] Copying HTML from a document to another document

2004-09-19 Thread Sam Hobbs
I am sorry for getting impatient, but I truly believe that my original question was very reasonalble and relevant. If not, then it would help for someone to be clear about the problem. The very vague answers don't help me; I sure don't understand what the problem is. If the "How To Ask Question

Re: [PHP-DEV] Copying HTML from a document to another document

2004-09-19 Thread dharana
http://www.catb.org/~esr/faqs/smart-questions.html Sam Hobbs wrote: "Christian Stocker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I did try many things, including importNode. I did look at the documentation as much as I can. I looked at many other sites. I converted the PHP cod

Re: [PHP-DEV] Copying HTML from a document to another document

2004-09-19 Thread Sam Hobbs
"Christian Stocker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > On 19.9.2004 20:30 Uhr, Sam Hobbs wrote: >> Please see: >> >> Copying HTML from a document to another document >> http://marc.theaimsgroup.com/?l=php-general&m=109419037409980&w=2 >> >> It has been more than two

Re: [PHP-DEV] Copying HTML from a document to another document

2004-09-19 Thread Christian Stocker
On 19.9.2004 20:30 Uhr, Sam Hobbs wrote: Please see: Copying HTML from a document to another document http://marc.theaimsgroup.com/?l=php-general&m=109419037409980&w=2 It has been more than two weeks without a reply. I suspect there is a bug in PHP. I assume the people looking at that list can't