ryu wrote:
But how do you iterate the series of nodes to find Honda? If I use a reader
as XmlTextReader , the reader's value property wouldn't allow me to set. If
I load the xml into a XmlDocument, I dont see any methods that will iterate
the series of nodes.
In the DOM as implemented by XmlDocument a text node is always a child
node of an element node so you could use GetElementsByTagName to find
the elements you are looking for to contain the text.
Or you can use XPath e.g.
XmlNodeList nodeList =
xmlDocument.SelectNodes("//text()[. = 'Toyota']");
foreach (XmlNode node in nodeList) {
nodeList.Value = "Honda";
}
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/