↧
Answer by chubbsondubs for Accessing the Subnodes of the nodes under parent...
So you just want to clone the node in the tree. Unfortunately, Groovy doesn't have a great clone method available for us to use so we're going to use a little workaround by serializing the node. This...
View ArticleAnswer by tim_yates for Accessing the Subnodes of the nodes under parent...
So, you can do something like this:import groovy.xml.MarkupBuilderimport groovy.xml.XmlSlurperimport java.time.ZonedDateTimedef xml = new XmlSlurper().parseText(text)def orderStartDate =...
View ArticleAccessing the Subnodes of the nodes under parent using groovy
I am novice to groovy.I am trying to reformat the XML using groovy.I am creating XML node for each date between dates orderstartdate and StartDate. But one of the child node(prod) has subnodes(id and...
View Article