class xmlWorker {
static def tcproj = ''' <tcs>
                        <supported_versions>
                                <version>6.0.35.A</version>
                                <version>7.0.25.B</version>
                        </supported_versions>
                </tcs>'''
}
def records = new XmlParser().parseText(xmlWorker.tcproj)
 
def ver = "7.0.25.B"

println "Version: " + ver
 
//println records.supported_versions.version.any { println it; it.text().matches( /${ver}/ ) }

records.supported_versions.version.each { println it.text() }
 
/*if ( records.supported_versions.version.any { it.text().matches( /${ver}/ ) } ) {
        println "if"
} else {
        println "else"
}*/