This is similar to matching a name space with a wildcard.
'This is the node we are searching in Dim someXmlNode As XmlNode = FetchXmlNode() Dim xPathExpr As String = String.Empty 'find all nodes with names that starts with nisse_ xPathExpr = ".//*[starts-with(name(), 'nisse_')]" 'loop through all elements that matches our XPath For Each elementWithNisse As XmlNode In someXmlNode.SelectNodes(xPathExpr) AndHereAMiracleHappens(elementWithNisse) Next |