Class XML

  • public class XML
    extends java.lang.Object
    XML services. This class provides several XML utility functions.
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static SAXParser createSAXParser()
      Create a SAX parser.
      static java.lang.String escape​(java.lang.String source)
      Escape special characters in the given string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XML

        public XML()
    • Method Detail

      • createSAXParser

        public static SAXParser createSAXParser()
        Create a SAX parser.
        A new SAX parser.
      • escape

        public static java.lang.String escape​(java.lang.String source)
        Escape special characters in the given string. This method takes a string and escapes special characters so it can be used as the text content of an element or as an attribute value. For example, the ampersand & becomes &.
        source - The string to escape
        The escaped string.