Hello,
I'm very new to Groovy so I suppose that I misunderstood something.
I wrote a little test to update an attribute of an XML node and it does
not work: new value gets truncated to the size of the previous value.
def input = '''<tag id="12" />'''
def tag = new XmlParser().parseText(input)
tag.attribute("id").value = "ABCD"
// id contains "AB" it has been truncated to original size
assert tag.attribute("id").size() == 4 : tag.attribute("id")
I suppose that the error is on line 3 but I don't understand it.
Thanks,
Gael
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email