This content has been marked as final. Show 3 replies
Can you not use "contains" function in you xPath to achieve your goal?
I dont see a contains method in javax.xml.xpath.XPath
ted_trippin was referring to an XPath function, not a Java method. XPath does not support regular expressions, but it does have several string functions you can use. For instance, you could use the starts-with function in an XPath expression like "/parameter[starts-with(@name, 'M2-')]/value/text()".