Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / October 2003

Tip: Looking for answers? Try searching our database.

XmlDocument and CloneNode

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
itsme - 14 Oct 2003 05:12 GMT
Hello,

How can one copy an XmlDocument "A" into another
XmlDocument "B"

When I say "copy", I mean to replace the XmlDocument "A"
completely by the XmlDocument "B". I am trying to use
cloneNode method of the XmlDocument but somehow I am
getting multiple copies of the same node.

Does the cloneNode replaces the XmlDocument completely or
it adds nodes to the existing XmlDocument?

Can anyone please help me out?

Thanks in advance.
Johan De Paepe - 27 Oct 2003 16:24 GMT
Why don't you just load the XML document in memory, make changes that are
needed, then before you use the XmlDocument.Save method, you check if the
xmldocument is still there, and if it is, remove it. then save your Document
with the same name?

CloneNode just makes a copy of a selected node.

Johan De Paepe

> Hello,
>
[quoted text clipped - 12 lines]
>
> Thanks in advance.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.