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

Discussion in 'ASP .Net' started by Bob, Jul 22, 2004.

  1. Bob

    Bob Guest

    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?
    > >
    > >

    >
    >
     
    Bob, Jul 22, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Shoval Tomer
    Replies:
    0
    Views:
    445
    Shoval Tomer
    Jul 9, 2003
  2. Mike Langley

    How do I Bind an XmlNode Or XmlDocument to a Custom Control

    Mike Langley, Sep 12, 2003, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    158
    Mike Langley
    Sep 12, 2003
  3. John Bailo

    XmlDocument Web method returns type XmlNode

    John Bailo, Oct 22, 2004, in forum: ASP .Net Web Services
    Replies:
    3
    Views:
    280
    Dan Rogers
    Nov 15, 2004
  4. Dave T

    XMLDocument to XMLNode

    Dave T, Jul 31, 2007, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    265
    Martin Honnen
    Jul 31, 2007
  5. PerlFAQ Server
    Replies:
    0
    Views:
    117
    PerlFAQ Server
    Jan 13, 2011
Loading...

Share This Page