This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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 Elasticsearch in Action this week in the Big Data 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://kickstarter.com/rocket-mass-heater
 
subject: Groovy findAll for XML attribute values