What you refer to as a "coloned attribute" is actually an attribute that is in a namespace. The default behaviour of XmlSlurper is to ignore namespaces in the sense that when you ask it for a node name without a colon it will find nodes with that local name regardless of namespace. So you may find that simply
it.@name
finds the attribute you're interested in. If that doesn't work then you'll need to call declareNamespace
on the object you got back from XmlSlurper, to map a prefix to the namespace URI that corresponds to model:
in the XML document (look for the xmlns:model="http://example.com"
or whatever in the XML)
def xml = new XmlSlurper().parse(...).declareNamespace(
model:"http://example.com")
and then model:name
should work.