We insist we're only equal to other xml.Equality
implementors,
which heads off a lot of inconsistency up front.
We insist we're only equal to other xml.Equality
implementors,
which heads off a lot of inconsistency up front.
Returns some prefix that is mapped to the URI.
Returns some prefix that is mapped to the URI.
the input URI
the prefix that is mapped to the input URI, or null if no prefix is mapped to the URI.
It's be nice to make these final, but there are probably people out there subclassing the XML types, especially when it comes to equals.
It's be nice to make these final, but there are probably people out there subclassing the XML types, especially when it comes to equals. However WE at least can pretend they are final since clearly individual classes cannot be trusted to maintain a semblance of order.
The class
NamespaceBinding
represents namespace bindings and scopes. The binding for the default namespace is treated as a null prefix. the absent namespace is represented with the null uri. Neither prefix nor uri may be empty, which is not checked.1.0