News

Groovy natively supports different markup languages like XML, HTML, and SOAP, thanks to a feature called GroovyMarkup. This means it defines a specific syntax to express tree-like structures.
However, Groovy 2.1 introduced a method to do this and in this post I demonstrate a Groovy script that makes use of the groovy.xml.XmlUtil.escapeXml (String) method.