Solved

insert a XmlNodeList to an xmldocument

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Diagnostics with Net and Net.Sockets 2 31
Simple Injector with Web Service 4 54
Problem with SelectList in .NET MVC application 1 27
C# MVC Insert Multiple Row into DB 2 30
Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

856 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