Groups | Blog | Home
all groups > dotnet xml > february 2004 >

dotnet xml : XmlNode



Michael Hutchinson
2/3/2004 10:12:00 PM
When an XmlNode method returns an XmlNode, such as a child, is this
generated on-the-fly or is it the actual component of the internal tree
structure? If the parent is moved in the tree, will the pointer remain
valid? I have looked at as much of the structure as I can using .NET
Reflector and I think it will, but I want to be sure.

I 'm planning to add XmlNodes to the Tag property of TreeNodes in a TreeView
to be able to persist changes back to the document and I would like to know
if this will take up any more memory than when they are not linked in this
way, or if it is better to generate an XPath pointer as I need it.

Oleg Tkachenko [MVP]
2/4/2004 12:53:40 PM
[quoted text, click to view]
Why internal? There is no internal or external tree, there is just tree
of XmlNode objects.

[quoted text, click to view]
Sure.
--
Oleg Tkachenko [XML MVP, XmlInsider]
AddThis Social Bookmark Button