Any ideas why the serialized xml becomes empty in this case?
I think it should be possible to put an 'ü' charter in the xml element.
Thanks!
def xml ="""<?xml version="1.0" encoding="UTF-8"?>
<Schlüssel>
text content
</Schlüssel>"""
groovy.util.slurpersupport.GPathResult s = new XmlSlurper().parseText(xml)
println groovy.xml.XmlUtil.serialize(s) // results in empty xml, why?
----- OUTPUT
<?xml version="1.0" encoding="UTF-8"?>
-----
Project pages
AndersTool
earBuddy
--
View this message in context: http://groovy.329449.n5.nabble.com/Encoding-issue-with-groovy-xml-XmlUtil-serialize-tp5038513p5038513.html
Sent from the groovy - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Your suggestion is working and I added this to Jira.
http://jira.codehaus.org/browse/GROOVY-5158
http://jira.codehaus.org/browse/GROOVY-5158
-----
Project pages
AndersTool
earBuddy
--
View this message in context: http://groovy.329449.n5.nabble.com/Encoding-issue-with-groovy-xml-XmlUtil-serialize-tp5038513p5040216.html