This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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
 
It's not a secret anymore!