Solved

insert a XmlNodeList to an xmldocument

Posted on 2006-11-15
2
2,013 Views
Last Modified: 2012-08-13
hi

i am processing an XmlDocument.

I extract an XmlNodeList from the XmlDocument

Loop through each XmlNode in the XmlNodeList

Change the content of the XmlNode.

Add it back in the XmlNodeList

Put the XmlNodeList back into the XmlDocument.

cheers
0
Comment
Question by:MrKevorkian
2 Comments
 
LVL 15

Accepted Solution

by:
ozymandias earned 185 total points
ID: 17947452
What you are doing is unecessary.

i am processing an XmlDocument.
I extract an XmlNodeList from the XmlDocument
Loop through each XmlNode in the XmlNodeList
Change the content of the XmlNode.
Add it back in the XmlNodeList                                                              <- not required
Put the XmlNodeList back into the XmlDocument.                                    <- not required

The references you have to the nodes are references to the actual nodes in the document.
When you change them the document is changed automatically.
0
 
LVL 1

Author Comment

by:MrKevorkian
ID: 17947604
thanks
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question