RE: WRONG_DOCUMENT_ERR when appending a DOMDocument to DOMNode

2002-10-02 Thread Rama Revanur
HI, I tried it and it works, thanks. -Original Message- From: Jesse Pelton [mailto:[EMAIL PROTECTED]] Sent: 02/10/2002 02:16 To: '[EMAIL PROTECTED]' Subject: RE: WRONG_DOCUMENT_ERR when appending a DOMDocument to DOMNode You'll probably need to call DOMDocum

RE: WRONG_DOCUMENT_ERR when appending a DOMDocument to DOMNode

2002-10-02 Thread Jesse Pelton
You'll probably need to call DOMDocument::importNode(). -Original Message- From: Justin Kirby [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 2:13 PM To: [EMAIL PROTECTED] Subject: Re: WRONG_DOCUMENT_ERR when appending a DOMDocument to DOMNode All you have to do is c

Re: WRONG_DOCUMENT_ERR when appending a DOMDocument to DOMNode

2002-10-02 Thread Justin Kirby
All you have to do is create a docfragment and append the document to that. Then add the docfragment to the root of the other document... DOMDocument *one = . DOMDocument *two = . DOMDocumentFragment *frag = two->createDocumentFragment(); frag->appendChild(two->getDocumentElement()); DO

WRONG_DOCUMENT_ERR when appending a DOMDocument to DOMNode

2002-10-02 Thread Rama Revanur
Hi, I am trying to append a DOMDocument to a root node in another document.When i do that, i get WRONG_DOCUMENT_ERR: I read that DOMDocumentFragment must be used in such situation, is that correct.If so can anyone show me how to do that. Thanks, Rama -