473,394 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

XML Nodes inner text

Nak
Hi there,

I am using the ImportNode method of the XMLDocument to grab a node from
one document to another. Although I'm slightly confused about something,

* Why does the documents events get triggered when performing a "deep"
import?

Presumably when performing a "deep" import the inner text is copied too?
At the moment using a shallow import I miss the InnerText. Something else
what is confusing is why the InnerText property seems to show the InnerText
of it's children too, why is this??

All I'm trying to do is copy node for node *without* triggering the
documents events as I am using this for other purposes. Any ideas would be
most appreciated! Thanks loads in advance!

Nick.
Nov 21 '05 #1
1 1259
Nak
TIs okay, I have a solution in place now! :-)

"Nak" <a@a.com> wrote in message
news:eW****************@TK2MSFTNGP15.phx.gbl...
Hi there,

I am using the ImportNode method of the XMLDocument to grab a node from
one document to another. Although I'm slightly confused about something,

* Why does the documents events get triggered when performing a "deep"
import?

Presumably when performing a "deep" import the inner text is copied
too? At the moment using a shallow import I miss the InnerText. Something
else what is confusing is why the InnerText property seems to show the
InnerText of it's children too, why is this??

All I'm trying to do is copy node for node *without* triggering the
documents events as I am using this for other purposes. Any ideas would
be most appreciated! Thanks loads in advance!

Nick.

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Gordon - Adelphia | last post by:
I have a question regarding xhtml. Why, why, why does the ELEMENT <body> allow “unblocked” text. HTML does not (though, most browsers will render). Xhtml (transitional) however allows text nodes...
9
by: Rolf Kemper | last post by:
Dear Experts, I got stuck with the following problem and need your help. What I wnat to do is to get a set of distinct nodes. Before the distinct I have selected the multiple occourences...
2
by: RobG | last post by:
Why does Firefox insert #text nodes as children of TR elements? As a work-around for older Safari versions not properly supporting a table row's cells collection, I used the row's childNodes...
2
by: KathyB | last post by:
Hi, I have a transformed xml source into html for client input. In order to update the xmlDoc on the server, how do I specify the correct nodes if they are built dynamically through assigning id's...
2
by: Greg | last post by:
Hi. I have a rather large xml document (object) that can have one or more nodes with a certain attribute throughout (at ANY depth, not at the same level necessarily). I need to find this...
0
by: david.k.land | last post by:
I have an XML document that I'm looping through and modifying as I go. Some nodes have to be deleted and I don't want to process their children after deleting the node. If my XML structure looks...
10
by: John Rogers | last post by:
This code only counts the parent nodes or rootnodes in a treeview, how do you count all the nodes in a treeview? // one way int NodeCounter = 0; foreach (TreeNode currentNode in...
0
by: empiresolutions | last post by:
Howdy, I have an PHP page that edits XML files. I want ADD a new *id* attribute to all nodes on the page that do not have it all ready. Then i want to delete all of the values of *id* and set...
1
by: empiresolutions | last post by:
Howdy, I have an PHP page that edits XML files. I want ADD a new *id* attribute to all nodes on the page that do not have it all ready. Then i want to delete all of the values of *id* and set...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.