As reported by vhokstad:
I noticed a potential problem in the Java RTK: The
fromXML() code for
the various objects assume that the namespace prefix is
string, such as "domain:" for the domain mapping. There
is as far as I
can see absolutely no guarantee that is the case in the
and indeed this would be completely contrary to how XML
meant to work. The only safe way of ensuring you have a
node of a
specific namespace is to compare the result of
the namespaceURI of the node you are looking for.
This may work with current servers, but you have
guarantee that it will stay that way, as servers can
you whatever it wants to before the ":" as long as a
xmlns:whatever="...whatever URI..." is present to map
to a valid XML namespace.
Perhaps this should also be applied to the generation
of XML because we are doing manual "domain:" prefixing
there as well
Log in to post a comment.