Class XMLComparer

  • public class XMLComparer
    extends Object
    This class is used to compare if two DOM nodes are equal.
    • Constructor Detail

      • XMLComparer

        public XMLComparer()
    • Method Detail

      • isNodeEqual

        public boolean isNodeEqual​(Node control,
                                   Node test)
        Compare two DOM nodes.
        control - The first node in the comparison.
        test - The second node in the comparison.
        Return true if the nodes are equal, else false.
      • isAttributeEqual

        protected boolean isAttributeEqual​(Attr control,
                                           Attr test)
      • isIgnoreOrder

        public boolean isIgnoreOrder()
      • setIgnoreOrder

        public void setIgnoreOrder​(boolean ignoreOrder)