Solved

insert a XmlNodeList to an xmldocument

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
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.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

914 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

16 Experts available now in Live!

Get 1:1 Help Now