You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@groovy.apache.org by GroovyBeginner <gr...@gmail.com> on 2016/08/20 17:03:35 UTC

Convert Employee Node object to XML

I have Employee Node Object of class groovy.util.Node

 

How to convert this object to XML with out using the serialize method IN
Groovy?



--
View this message in context: http://groovy.329449.n5.nabble.com/Convert-Employee-Node-object-to-XML-tp5734770.html
Sent from the Groovy Dev mailing list archive at Nabble.com.

Re: Convert Employee Node object to XML

Posted by Paul King <pa...@asert.com.au>.
You can use XmlNodePrinter directly. That is what serialize will use anyway:

new XmlNodePrinter().print(node)

Cheers, Paul.

On Sun, Aug 21, 2016 at 3:03 AM, GroovyBeginner
<gr...@gmail.com> wrote:
> I have Employee Node Object of class groovy.util.Node
>
>
>
> How to convert this object to XML with out using the serialize method IN
> Groovy?
>
>
>
> --
> View this message in context: http://groovy.329449.n5.nabble.com/Convert-Employee-Node-object-to-XML-tp5734770.html
> Sent from the Groovy Dev mailing list archive at Nabble.com.