I need to get values from a couple xml files that vary.
Ex. one file could contain:


and another would replace B with A and even have an extra group

    <street>123 pine street</street>

I would need to get any nodes that contain "fname" or "lname" regardless of the number that comes after or what the parent nodes are. Would this be possible without knowing the path?


Assuming testDoc is your XmlDocument variable, you can try like this testDoc.DocumentElement.GetElementsByTagName("fname*");