using System;
using System.Xml;
public class FindNodesByName {
private static void Main() {
// Load the document.
XmlDocument doc = new XmlDocument();
doc.Load("books.xml");
// Retrieve all prices.
XmlNodeList nodeList = doc.GetElementsByTagName("B");
foreach (XmlNode node in nodeList) {
Console.WriteLine(node.ChildNodes[0].Value);
}
}
}
// books.xml
/*
text
textg
99999
*/