aspose file tools*
The moose likes Groovy and the fly likes Groovy findAll for XML attribute values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Groovy findAll for XML attribute values" Watch "Groovy findAll for XML attribute values" New topic
Author

Groovy findAll for XML attribute values

Mark Lorenz
Greenhorn

Joined: Mar 14, 2010
Posts: 3
I have an XML doc that includes tags like this:


These tags occur multiple times in the doc. I need to see if the statusCode code value is any of the nonEndStates as shown in my Groovy code snippet:



I know I'm finding all the proper tags, but the logic doesn't work. Can someone explain what I'm doing wrong? Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Groovy findAll for XML attribute values