We should be able to detect the fact that a namespace is available on a parent element to verify equality.
For instance:
<root xmlns="toto">
<foo>Hello</foo>
</root>
Should be equal to
<root>
<foo xmlns="toto">Hello</foo>
</root>
And also equal to
<root xmlns:t="toto">
<t:foo>Hello</t:foo>
</root>