Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: Can an XmlNode from one XmlDocument be copied to another XmlDocument?

Reply
Thread Tools

Re: Can an XmlNode from one XmlDocument be copied to another XmlDocument?

 
 
Bob
Guest
Posts: n/a
 
      07-21-2004
I tried InnerXml and it works. Since you mentioned performance, is it
particularly slow?

"bruce barker" <> wrote in message
news:%...
> you have to build a new node and create your own copy function. if
> performance is not the top issue, use the InnerXml/OuterXml properties to
> copy.
>
> -- bruce (sqlwork.com)
>
>
>
> " Bob" <> wrote in message
> news:%...
> > I'm wondering if one node that belongs to one XmlDocument can be

appended
> to
> > another XmlDocument as a new child without having to build a new node

from
> > scratch. I would think XmlNode.Clone() is for this purpose but no, it
> > doesn't work. I got the following error:
> >
> > The node to be inserted is from a different document context
> >
> > Does anyone know if this is doable without building a new node and

without
> > putting through XSL?
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 2.4 I copied the perl binary from one machine to another, but scripts don't work. PerlFAQ Server Perl Misc 0 01-13-2011 11:00 AM
XMLDocument to XMLNode Dave T ASP .Net Web Services 1 07-31-2007 04:29 PM
XmlDocument Web method returns type XmlNode John Bailo ASP .Net Web Services 3 11-15-2004 11:56 PM
How do I Bind an XmlNode Or XmlDocument to a Custom Control Mike Langley ASP .Net Web Controls 0 09-12-2003 07:49 PM
loading xmlcontent from one xmldocument into another xmldocument Shoval Tomer ASP .Net 0 07-09-2003 04:29 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57