Just as a comment, you should consider asking such questions on the
users mailing list. The dev list is all about development of Groovy
itself.
In any case, your problem can probably be solved with XmlSlurper but
with more complexity than is ideal. I would use XmlParser:
def response = new XmlPar
Hi,
I'm trying to accomplish adding the namespace to the attribute . Is there a
way to do this?Here is the XML structure.
Don Xijote
Manuel De
Cervantes
My Output should get the following:
Don Xijote
Manuel De
Cervantes
--
View this message in context:
http
You probably want something like this:
def response = new XmlSlurper().parseText(books)
response.'**'.findAll{ i...@available.size() }.each {
it.@isavailable = 'true'
}
println groovy.xml.XmlUtil.serialize(response)
On Mon, Jul 4, 2016 at 3:05 PM, GroovyBeginner wrote:
> I'm trying to accompl