Fwd: Issue with XML Serialization

2016-08-18 Thread Paul King
-- Forwarded message -- From: GroovyBeginner Date: Thu, Aug 18, 2016 at 8:17 PM Subject: Issue with XML Serialization To: d...@groovy.incubator.apache.org Am facing the issue when serialising the node object. Here is my code but getting an error

Re: Issue with XML Serialization

2016-08-18 Thread Paul King
wrt: XmlUtil.serialize(xml.toString()) You are seeing the expected behavior. If you look at the javadoc for XmlNodePrinter, you'll see it does take a String parameter but it expects that to be in xml format. If you take a look at the XmlParser nodes, you'll see that they don't print out in xml.