This is one of the main reasons for the System.Xml.XPath.XPathNavigator
object which gives you a "cursor" positioned at a given point in the DOM
document.
XPathNavigator nav = doc.CreateNavigator();
Then you can clone this guy and move the two navigator objects
independently.
As for updating the tree you will need .NET 2.0 which adds editing
capabilities to the XPathNavigator class.
"alfred" <al****@discussions.microsoft.com> wrote in message
news:74**********************************@microsof t.com...
Hi
my question is on traversing a tree with DOM. how would I be able to
traverse 2 trees at the same time. I have 2 XML documents, with similar
nodes. I would like to traverse 1 xml document, if I found a node that
matches another node in the other document, I would like to update
attributes
in the other document. I know you can recursive traverse a document, my
problem is to traverse 2 document at the same time,
thanks
P