Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

insert a XmlNodeList to an xmldocument

Posted on 2006-11-15
2
Medium Priority
?
2,060 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
ozymandias earned 740 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

722 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