#!/usr/bin/env groovy /* * escapeXml.groovy * * Requires Groovy 2.1 or later. */ if (args.length < 1) { println "USAGE: groovy escapeXml.groovy <xmlFileToBeProcessed ...
An XML document is a great way to represent information. But some characters, such as the ampersand, can be problematic because they have special meaning. Here is how to avoid the pitfalls presented ...