groovy.xml.XmlUtil.serialize how to add xsi:nil="true"

Published: 31/01/2018
groovy.xml.XmlUtil.serialize how to add xsi:nil="true"
Source: STACKOVERFLOW.COM

Is it possible for the groovy.xml.XmlUtil.serialize method to add the xsi:nil="true" namespace to null nodes? I have an application where I use the XmlUtil.serialize utility to write an xml to file, but it doesn't automatically place the xsi:nil="true" namespace for null nodes. The XmlUtil.serialize method condenses nodes by taking null nodes like <n:test></n:test> and converting

Read more
Related news
Comment
FACEBOOK