Solved

insert a XmlNodeList to an xmldocument

Posted on 2006-11-15
2
2,011 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now