Class XmlValidationUtils

java.lang.Object
org.citrusframework.validation.xml.XmlValidationUtils

public abstract class XmlValidationUtils extends Object
Since:
2.3
Author:
Christoph Deppisch
  • Method Details

    • isElementIgnored

      public static boolean isElementIgnored(Node source, Node received, Set<String> ignoreExpressions, NamespaceContext namespaceContext)
      Checks if given element node is either on ignore list or contains @ignore@ tag inside control message
      Parameters:
      source -
      received -
      ignoreExpressions -
      namespaceContext -
      Returns:
    • isElementIgnored

      public static boolean isElementIgnored(Node received, Set<String> ignoreExpressions, NamespaceContext namespaceContext)
      Checks whether the node is ignored by node path expression or xpath expression.
      Parameters:
      received -
      ignoreExpressions -
      namespaceContext -
      Returns:
    • isAttributeIgnored

      public static boolean isAttributeIgnored(Node receivedElement, Node receivedAttribute, Node sourceAttribute, Set<String> ignoreMessageElements, NamespaceContext namespaceContext)
      Checks whether the current attribute is ignored either by global ignore placeholder in source attribute value or by xpath ignore expressions.
      Parameters:
      receivedElement -
      receivedAttribute -
      ignoreMessageElements -
      Returns: