Op
==(_:_:)
Compares two elements by identity, then by namespace definition and name.
static func == (lhs: XMLElement, rhs: XMLElement) -> Bool
Parameters
lhs-
The left-hand element.
rhs-
The right-hand element.
Return Value
true when the elements represent the same node or equivalent name/namespace pairs.
Discussion
This comparison does not walk the subtree or inspect attribute values. It is a lightweight equivalence check based on the libxml2 node pointer or matching namespace definition and local name.