I'm trying to parse FXCop XML to get a collection of all the "Issues..." tags with the values of their related "Level" attributes. I'm very new to Groovy so I'm stumbling with this one. The schema of the FXCop XML is very complex and the "Issues..." tags can appear at several levels in the schema. I suppose I could "brute force" it and code a separate search at each level but that could ultimately be problematic for more complex programs that are being analyzed.
Is there a simple (relatively) way to retrieve all the "Issues ..." tags from an XML document without having to manually code GPath searches down each of the subtrees?
Any help is greatly appreciated.
Essentially I just want to run the entire tree, find any tag named "Issue" and extract the value of Level. That's it. – Richard Schaefer Feb 12 '14 at 19:29