Class XMLUtil


  • public class XMLUtil
    extends Object
    • Constructor Detail

      • XMLUtil

        public XMLUtil()
    • Method Detail

      • escapeXML

        public static String escapeXML​(String s,
                                       boolean onlyASCII)
        Escapes a string with the appropriated XML codes.
        Parameters:
        s - the string to be escaped
        onlyASCII - codes above 127 will always be escaped with &#nn; if true
        Returns:
        the escaped string