Class DOMCompareUtils


  • public class DOMCompareUtils
    extends Object
    Comparator of the XML documents.
    • Constructor Detail

      • DOMCompareUtils

        public DOMCompareUtils()
    • Method Detail

      • equals

        public static String equals​(Document etalon,
                                    Document document)
        Checks, is the specified document equals to the etalon.
        Parameters:
        document - - document for the check
        etalon - - etalone document
        Returns:
        the error message in case the specified document not equals to the etalon and null otherwise
      • getContent

        public static String getContent​(Node node)
      • getChild

        public static Node getChild​(Node parent,
                                    int type)