[XML-SIG] Equivalence test for DOM Nodes?

Roman Kennke roman at interview-machine.com
Tue Nov 25 15:31:48 EST 2003


> Roman Kennke <roman at interview-machine.com> wrote:
>
>> There is no such standard.
>
> Ah! Actually there is, for values 'x' of standard where 'x' is equal to a
> Candidate Recommendation anyway. See Node.isEqualNode in DOM Level 3 Core:
>
>   http://www.w3.org/TR/2003/CR-DOM-Level-3-Core-20031107/core.html#Node3-isEqualNode

I quickly read over this. It seems to check for strict identity. For
example, two elements are equal (according to this spec), if their
namespaceURI, localName _and_ prefix are equal. I need a more relaxed
interpretation of equal, where the prefix is not considered. In fact, I
need this kind of comparison for the SOAP 1.2 testsuite. I think, it does
not matter if an element is named <env:Envelope> or <soap:Envelope> as
long as env and soap refer to the same namespaceURI.

Cheers, Roman
---
SOAP for Python
http://interview-machine.com/soap/




More information about the XML-SIG mailing list