Class XMLComparer

java.lang.Object
org.eclipse.persistence.platform.xml.XMLComparer

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

    • XMLComparer

      public XMLComparer()
  • Method Details

    • isNodeEqual

      public boolean isNodeEqual(Node control, Node test)
      Compare two DOM nodes.
      Parameters:
      control - The first node in the comparison.
      test - The second node in the comparison.
      Returns:
      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)