« Return to Thread: XMLParser: attribute gets truncated when updated

Re: Yikes! String is mutable! (was Re: [groovy-user] XMLParser: attribute gets truncated when updated)

by Gael Marziou :: Rate this Message:

Reply to Author | View in Thread

Thanks for the somehow frightening explanations, it helped me to find a
workaround.

I changed the buggy line :

tag.attribute("id").value = "ABCD"

to this:

tag.attributes().id = "ABCD"

Is there a better way?

Thanks,

Gael

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: XMLParser: attribute gets truncated when updated