Forum Discussion
RJanecek
13 years agoRegular Contributor
you can add value in the list:
def date = []
int datecount = Integer.parseInt (holderResponse.getNodeValue( "count(//*[local-name()='create_date' and namespace-uri()='yournamespace])") )
for(int i = 1; i <= datecount; i++){
date.add( holderResponse.getNodeValue( "//*[local-name()='create_date' and namespace-uri()='yournamespace']") )
}
and then compare in this list if i > i+1 or you can clone this list sort it and compare if these lists are equals
def date = []
int datecount = Integer.parseInt (holderResponse.getNodeValue( "count(//*[local-name()='create_date' and namespace-uri()='yournamespace])") )
for(int i = 1; i <= datecount; i++){
date.add( holderResponse.getNodeValue( "//*[local-name()='create_date' and namespace-uri()='yournamespace']") )
}
and then compare in this list if i > i+1 or you can clone this list sort it and compare if these lists are equals