Class XMLUtil


  • public final class XMLUtil
    extends Object
    • Field Detail

      • CONSIDER_OS_ENV_PROP

        public static String CONSIDER_OS_ENV_PROP
    • Method Detail

      • elementToString

        public static String elementToString​(Node n)
      • getTextContent

        public static String getTextContent​(Node n)
        Note: if the content is another element or set of elements, it returns a string representation of the hierarchy.
      • assertEquivalent

        public static void assertEquivalent​(Node node,
                                            Node node2)
      • stripCDATA

        public static String stripCDATA​(String s)
      • replaceSystemPropsInString

        public static String replaceSystemPropsInString​(String xml)
      • replaceSystemPropsInXml

        public static Document replaceSystemPropsInXml​(Document doc)
      • parseLong

        public static long parseLong​(Node elem)
      • parseInt

        public static int parseInt​(Node elem)
      • parseInt

        public static int parseInt​(Node elem,
                                   String value)
      • parseBoolean

        public static boolean parseBoolean​(Node elem)
      • parseDouble

        public static double parseDouble​(Node elem)
      • findResource

        public static URL findResource​(String resourceName)