tags:

views:

1015

answers:

1

I am selecting some nodes using XPath, and would like to use wildcards. Is this possible?

Something like the following would be useful:

foreach (XmlNode xml_node in xml_document.SelectNodes("/Data/Customers/D*"))
{
   //
}
+6  A: 

Try this:

/Data/Customers/*[starts-with(name(.), "D")]
Rubens Farias