You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Hyungseok Choi <ch...@mpeg.korea.ac.kr> on 2001/02/16 13:42:14 UTC

How to append the node of other DOMDocument..?

I'm trying to append the node of other DOMDocument to one.

But it happens "Unhandled Exception" error.

Why..??

Thanks in advance..



____________________________________________________
Hyungseok Choi, M.S Student
School of Electrical Engineering
Korea University
Seoul, South Korea 136-701

Tel) +2-3290-3699 ( Lab )
Email: chs@mpeg.korea.ac.kr
Home : under construction
____________________________________________________

Re: How to append the node of.... <- other problem too...

Posted by Khaled Noaman <kn...@ca.ibm.com>.
Hmm... I see. Then you have to manually add the functionality of an importNode to your code, or even better modifiy the xml4com and add an importNode method to the CXMLDOMDocument class, and post the patch to
the list.

Regards,
Khaled Noaman
XML Parsers - IBM Toronto Lab
knoaman@ca.ibm.com


Hyungseok Choi wrote:

> In using xml4com for VB programming there is not 'importNode' method..
>
> Then how we can copy a node of a different DOM document.
>
> Thanks again in advance.
>
> -----Original Message-----
> From: Khaled Noaman [mailto:knoaman@ca.ibm.com]
> Sent: Friday, February 16, 2001 9:43 PM
> To: xerces-c-dev@xml.apache.org
> Subject: Re: How to append the node of other DOMDocument..?
>
> You can not append a node of a different DOM document to a DOM tree. All nodes in the tree must have the same DOM document. If you want to append a node from a different tree, then use 'importNode' instead.
> Regards,
> Khaled Noaman
> XML Parsers, IBM Toronto Lab
> knoaman@ca.ibm.com
> Hyungseok Choi wrote:
> I'm trying to append the node of other DOMDocument to one.
> But it happens "Unhandled Exception" error.
> Why..??
> Thanks in advance..
> ____________________________________________________
> Hyungseok Choi, M.S Student
> School of Electrical Engineering
> Korea University
> Seoul, South Korea 136-701
> Tel) +2-3290-3699 ( Lab )
> Email: chs@mpeg.korea.ac.kr
> Home : under construction
> ____________________________________________________

RE: How to append the node of.... <- other problem too...

Posted by Hyungseok Choi <ch...@mpeg.korea.ac.kr>.
In using xml4com for VB programming there is not 'importNode' method..

Then how we can copy a node of a different DOM document.

Thanks again in advance.



-----Original Message-----
From: Khaled Noaman [mailto:knoaman@ca.ibm.com]
Sent: Friday, February 16, 2001 9:43 PM
To: xerces-c-dev@xml.apache.org
Subject: Re: How to append the node of other DOMDocument..?


You can not append a node of a different DOM document to a DOM tree. All nodes in the tree must have the same DOM document. If you want to append a node from a different tree, then use 'importNode' instead. 
Regards, 
Khaled Noaman 
XML Parsers, IBM Toronto Lab 
knoaman@ca.ibm.com 
Hyungseok Choi wrote: 
I'm trying to append the node of other DOMDocument to one. 
But it happens "Unhandled Exception" error. 
Why..?? 
Thanks in advance.. 
____________________________________________________ 
Hyungseok Choi, M.S Student 
School of Electrical Engineering 
Korea University 
Seoul, South Korea 136-701 
Tel) +2-3290-3699 ( Lab ) 
Email: chs@mpeg.korea.ac.kr 
Home : under construction 
____________________________________________________

Re: How to append the node of other DOMDocument..?

Posted by Khaled Noaman <kn...@ca.ibm.com>.
You can not append a node of a different DOM document to a DOM tree. All
nodes in the tree must have the same DOM document. If you want to append
a node from a different tree, then use 'importNode' instead.

Regards,
Khaled Noaman
XML Parsers, IBM Toronto Lab
knoaman@ca.ibm.com

Hyungseok Choi wrote:

> I'm trying to append the node of other DOMDocument to one.
>
> But it happens "Unhandled Exception" error.
>
> Why..??
>
> Thanks in advance..
>
> ____________________________________________________
> Hyungseok Choi, M.S Student
> School of Electrical Engineering
> Korea University
> Seoul, South Korea 136-701
>
> Tel) +2-3290-3699 ( Lab )
> Email: chs@mpeg.korea.ac.kr
> Home : under construction
> ____________________________________________________