matches method

  1. @override
bool matches(
  1. XMLNode node
)
override

Returns true if the node matches the description provided by this Handler.

Implementation

@override
bool matches(XMLNode node) {
  var matches = true;
  if (nonzaTag == null && nonzaXmlns == null) {
    return true;
  } else {
    if (nonzaXmlns != null) {
      matches &= node.attributes['xmlns'] == nonzaXmlns;
    }
    if (nonzaTag != null) {
      matches &= node.tag == nonzaTag;
    }
  }

  return matches;
}